chore: check timeout variable

This commit is contained in:
Bo-Yi Wu 2019-09-28 11:40:28 +08:00
parent f0de4fea6f
commit 2ef3f5e459

View file

@ -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 $*"