From 9f6c7834d80c22cb6025da970ae5e404b517877b Mon Sep 17 00:00:00 2001 From: Hyperling Date: Mon, 23 Mar 2026 12:31:42 -0700 Subject: [PATCH] Add comments and TBD's. --- bin-shared/send_master.sh | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/bin-shared/send_master.sh b/bin-shared/send_master.sh index f25969a..c50c421 100755 --- a/bin-shared/send_master.sh +++ b/bin-shared/send_master.sh @@ -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}" -clone -e "ssh -p $SERVER_PORT" ./ $SERVER_USER@$SERVER_NAME:$SERVER_SFTP/$new_dir +do + clone -e "ssh -p $SERVER_PORT" ./ $SERVER_USER@$SERVER_NAME:$SERVER_SFTP/$new_dir +while $loop + +## Complete ## + +echo "Done!" +exit 0