From 2ef3f5e459a41a73c4d767489edaa342ab146597 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sat, 28 Sep 2019 11:40:28 +0800 Subject: [PATCH] chore: check timeout variable --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 2784ae2..8ffffc0 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,7 +4,7 @@ set -eu export GITHUB="true" -[ -n "$INPUT_TIMEOUT" ] && export INPUT_TIMEOUT="30s" -[ -n "$INPUT_COMMAND_TIMEOUT" ] && export INPUT_COMMAND_TIMEOUT="1m" +[ -z "$INPUT_TIMEOUT" ] && export INPUT_TIMEOUT="30s" +[ -z "$INPUT_COMMAND_TIMEOUT" ] && export INPUT_COMMAND_TIMEOUT="1m" sh -c "/bin/drone-scp $*"