scp-action/entrypoint.sh

12 lines
290 B
Bash
Raw Normal View History

2019-05-11 17:01:31 +08:00
#!/bin/sh
set -eu
export GITHUB="true"
2019-09-28 11:40:28 +08:00
[ -z "$INPUT_TIMEOUT" ] && export INPUT_TIMEOUT="30s"
[ -z "$INPUT_COMMAND_TIMEOUT" ] && export INPUT_COMMAND_TIMEOUT="1m"
[ -n "$INPUT_STRIP_COMPONENTS" ] && export INPUT_STRIP_COMPONENTS=$((INPUT_STRIP_COMPONENTS + 0))
2019-09-28 11:37:34 +08:00
2019-05-11 20:30:07 +08:00
sh -c "/bin/drone-scp $*"