Changed from /bin/bash to /bin/sh which is busybox for alpine

This commit is contained in:
Marco Dalla Santa
2022-03-22 15:02:57 +00:00
parent afa413dc37
commit fc430f0194
5 changed files with 8 additions and 5 deletions

View File

@@ -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}