action-scp/entrypoint.sh
Bo-Yi Wu f1b7ce641c update INPUT_STRIP_COMPONENTS
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2019-09-28 12:37:22 +08:00

12 lines
357 B
Bash
Executable file

#!/bin/sh
set -eu
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 $*"