Promote Stable Version #1

Merged
me merged 144 commits from prod into main 2026-08-05 15:44:08 -07:00
Showing only changes of commit 9f6c7834d8 - Show all commits
+15
View File
@@ -3,15 +3,30 @@
# TBD:
# - ensure all SERVER_* variables actually exist in environment
# - test the script :)
# - add parameter to set loop=true
## Variables ##
DIR="$(dirname -- "${BASH_SOURCE[0]}")"
loop=false
## Validations ##
if [[ "$DIR" != *"MASTER" ]]; then
echo "This directory is not labeled as a MASTER. Skipping upload."
exit 0
fi
## Main ##
new_dir="`basename $DIR`"
new_dir="${new_dir//MASTER/clone}"
do
clone -e "ssh -p $SERVER_PORT" ./ $SERVER_USER@$SERVER_NAME:$SERVER_SFTP/$new_dir
while $loop
## Complete ##
echo "Done!"
exit 0