a few different upload issues #6372

progress: sftp bundle upload works!

losing status?
This commit is contained in:
rusefillc 2024-04-19 11:06:00 -04:00
parent c7f258c9fd
commit ed4c6cd241
1 changed files with 0 additions and 13 deletions

View File

@ -52,19 +52,6 @@ mkdir autoupdate
cd autoupdate
put $UPDATE_BUNDLE_FILE
SSHCMD
tar -czf - $FULL_BUNDLE_FILE | sshpass -p "$PASS" ssh -o StrictHostKeyChecking=no ${USER}@${HOST} "mkdir -p ${DESTINATION_FOLDER}; tar -xzf - -C ${DESTINATION_FOLDER}"
RET=$((RET+$?+PIPESTATUS))
if [ -f $UPDATE_BUNDLE_FILE ]; then
tar -czf - $UPDATE_BUNDLE_FILE | sshpass -p "$PASS" ssh -o StrictHostKeyChecking=no ${USER}@${HOST} "mkdir -p ${DESTINATION_FOLDER}/autoupdate; tar -xzf - -C ${DESTINATION_FOLDER}/autoupdate"
RET=$((RET+$?+PIPESTATUS))
else
echo "File $UPDATE_BUNDLE_FILE does not exist."
fi
if [ $RET -ne 0 ]; then
echo "$SCRIPT_NAME: Bundle upload failed"
exit 1
fi
echo "$SCRIPT_NAME: DONE $FULL_BUNDLE_FILE"
else
echo "$SCRIPT_NAME: Upload not configured"