fix(pwd): added check for uploaded folder existence

This commit is contained in:
Marco Dalla Santa
2021-09-08 23:12:55 +02:00
parent 874eec1e4c
commit 601a3cdfc5

View File

@@ -16,4 +16,4 @@ if [ ! -z "$POST_UPLOAD" ]; then
echo "✅ Executed post-upload script";
fi
echo "🎉 Done";
sshpass -p ${PASSWORD} ssh ${INPUT_SSH_OPTIONS} ${INPUT_USER}@${INPUT_HOST} [[ -f $FILE_PATH ]] && echo "🎉 Done" || echo "😢 Something went wrong..." && exit 1;