From 6ed7475c02fca645617ecb35cd86d83a27ca940e Mon Sep 17 00:00:00 2001 From: Hyperling Date: Fri, 27 Mar 2026 18:40:11 -0700 Subject: [PATCH] Change command to use the proper variables which should now exist in each main env project. Add a sleep for the loop with conditional output. --- bin-shared/send_master.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/bin-shared/send_master.sh b/bin-shared/send_master.sh index a244bcd..6a549f9 100755 --- a/bin-shared/send_master.sh +++ b/bin-shared/send_master.sh @@ -1,7 +1,6 @@ #!/usr/bin/env bash # TBD: -# - ensure all SERVER_* variables actually exist in environment # - test the script :) # - add parameter to set loop=true # - allow passing the script a variable for the dir, rather than assuming curr @@ -23,8 +22,15 @@ fi new_dir="`basename $DIR`" new_dir="${new_dir//MASTER/clone}" +sleep=0 do - clone -e "ssh -p $SERVER_PORT" ./ $SERVER_USER@$SERVER_NAME:$SERVER_SFTP/$new_dir + if (( $sleep > 0 )); then + echo "Sleeping for '$sleep' seconds..." + sleep $sleep + fi + #clone -e "ssh -p $PROD_DATA_PORT" ./ $PROD_DATA_USER@$PROD_DATA_HOST:$PROD_DATA_DIR/$new_dir + echo "FORTEST - Here's the command: 'clone -e "ssh -p $PROD_DATA_PORT" ./ $PROD_DATA_USER@$PROD_DATA_HOST:$PROD_DATA_DIR/$new_dir'" + sleep=30 while $loop ## Complete ##