mirror of
https://gitee.com/jiulinxiri/ssh-scp-deploy.git
synced 2026-03-10 04:22:54 +08:00
Changed from /bin/bash to /bin/sh which is busybox for alpine
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
PRE_UPLOAD=${INPUT_PRE_UPLOAD}
|
||||
if [ ! -z "$PRE_UPLOAD" ]; then
|
||||
{
|
||||
@@ -14,7 +16,7 @@ fi
|
||||
sshpass -p ${PASSWORD} scp ${INPUT_SSH_OPTIONS} ${INPUT_SCP_OPTIONS} -P "${INPUT_PORT}" -r ${INPUT_LOCAL} ${INPUT_USER}@${INPUT_HOST}:"${INPUT_REMOTE}" &&
|
||||
echo "🙌 Uploaded via scp"
|
||||
} || {
|
||||
echo "😢 Something went wrong during upload" && exit 1
|
||||
echo "😢 Something went wrong during upload" && exit 1
|
||||
}
|
||||
|
||||
POST_UPLOAD=${INPUT_POST_UPLOAD}
|
||||
|
||||
Reference in New Issue
Block a user