action-scp/entrypoint.sh

13 lines
357 B
Bash
Raw Normal View History

2019-05-11 09:01:31 +00:00
#!/bin/sh
set -eu
export GITHUB="true"
2019-09-28 03:40:28 +00:00
[ -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))
2019-09-28 03:37:34 +00:00
2019-05-11 12:30:07 +00:00
sh -c "/bin/drone-scp $*"