From f1b7ce641c7706d004052c1272cf0c00e55d9373 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sat, 28 Sep 2019 12:37:22 +0800 Subject: [PATCH] update INPUT_STRIP_COMPONENTS Signed-off-by: Bo-Yi Wu --- entrypoint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/entrypoint.sh b/entrypoint.sh index 9bd028b..c394df8 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -6,6 +6,7 @@ export GITHUB="true" [ -z "$INPUT_TIMEOUT" ] && export INPUT_TIMEOUT="30s" [ -z "$INPUT_COMMAND_TIMEOUT" ] && export INPUT_COMMAND_TIMEOUT="1m" +[ -z "$INPUT_STRIP_COMPONENTS" ] && export INPUT_COMMAND_TIMEOUT=0 [ -n "$INPUT_STRIP_COMPONENTS" ] && export INPUT_STRIP_COMPONENTS=$((INPUT_STRIP_COMPONENTS + 0)) sh -c "/bin/drone-scp $*"