From 5ffafdd79e0946e5eaadb429c3ee4e30881ce5b5 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Sun, 15 Oct 2017 08:37:12 -0400 Subject: [PATCH] nicer, updated for more synching --- .../customize/fred/scripts/compare_soapbox.sh | 16 ++----- .../customize/fred/scripts/update_soapbox.sh | 47 ++++--------------- 2 files changed, 15 insertions(+), 48 deletions(-) diff --git a/scripts/customize/fred/scripts/compare_soapbox.sh b/scripts/customize/fred/scripts/compare_soapbox.sh index 17985be8..43f55557 100644 --- a/scripts/customize/fred/scripts/compare_soapbox.sh +++ b/scripts/customize/fred/scripts/compare_soapbox.sh @@ -6,16 +6,10 @@ source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" -sep -echo "comparing musix where 'less than' is on the soapbox..." -compare_dirs /media/fred/soapboxdrive/musix /z/musix - -sep -echo "comparing imaginations where 'less than' is on the soapbox..." -compare_dirs /media/fred/soapboxdrive/imaginations /z/imaginations - -sep -echo "comparing walrus where 'less than' is on the soapbox..." -compare_dirs /media/fred/soapboxdrive/walrus /z/walrus +for currdir in basement imaginations musix walrus; do + sep + echo "comparing $currdir where 'less than' is on the soapbox..." + compare_dirs /media/fred/soapboxdrive/$currdir /z/$currdir +done sep diff --git a/scripts/customize/fred/scripts/update_soapbox.sh b/scripts/customize/fred/scripts/update_soapbox.sh index ad44773d..869a1deb 100644 --- a/scripts/customize/fred/scripts/update_soapbox.sh +++ b/scripts/customize/fred/scripts/update_soapbox.sh @@ -29,46 +29,19 @@ if [ $? -ne 0 ]; then exit 1 fi -sep - -echo synching walrus... -rsync -av /z/walrus/* /media/fred/soapboxdrive/walrus/ -if [ $? -ne 0 ]; then - echo The walrus sync failed. - exit 1 -fi - -sep - -echo synching musix... -rsync -av /z/musix/* /media/fred/soapboxdrive/musix/ -if [ $? -ne 0 ]; then - echo The musix sync failed. - exit 1 -fi - -sep - -echo synching basement... -rsync -av /z/basement/* /media/fred/soapboxdrive/basement/ -if [ $? -ne 0 ]; then - echo The basement sync failed. - exit 1 -fi - -sep - -echo synching imaginations... -rsync -av /z/imaginations/* /media/fred/soapboxdrive/imaginations/ -if [ $? -ne 0 ]; then - echo The imaginations sync failed. - exit 1 -fi +for currdir in basement imaginations musix walrus; do + sep + echo "synching $currdir..." + netcp /z/$currdir/* /media/fred/soapboxdrive/$currdir/ + if [ $? -ne 0 ]; then + echo "The $currdir sync failed." + exit 1 + fi +done sep -echo synching musix... -echo getting latest fred codes... +echo getting latest fred repositories... pushd /media/fred/soapboxdrive get_source extra_brain -- 2.34.1