From 1fd067576772fdda54039cd8a31010ae95ed879d Mon Sep 17 00:00:00 2001 From: sma11black Date: Fri, 4 Sep 2020 01:25:37 +0800 Subject: [PATCH] Fix warning --- Dockerfile | 2 +- entrypoint.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index de9e29f..21f5a19 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ LABEL maintainer="sma11black " COPY entrypoint.sh /entrypoint.sh COPY sync_deploy_history.js /sync_deploy_history.js -RUN apt-get update && \ +RUN apt-get update > /dev/null && \ apt-get install -y git openssh-client > /dev/null ; \ chmod +x /entrypoint.sh diff --git a/entrypoint.sh b/entrypoint.sh index a338c13..1e958fd 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -20,7 +20,7 @@ npm install hexo-deployer-git --save NODE_PATH=$NODE_PATH:$(pwd)/node_modules node /sync_deploy_history.js # deployment -if [ "$INPUT_COMMIT_MSG" == "" ] +if [ "$INPUT_COMMIT_MSG" = "" ] then hexo g -d else