From 7ad1d1e472fb533049e6e1c8c7963e8180d8815b Mon Sep 17 00:00:00 2001 From: "Fred T. Hamster" Date: Thu, 31 Jan 2019 06:02:59 +0000 Subject: [PATCH] minor improvements --- scripts/archival/general_updater.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/archival/general_updater.sh b/scripts/archival/general_updater.sh index c0431eee..baca195c 100644 --- a/scripts/archival/general_updater.sh +++ b/scripts/archival/general_updater.sh @@ -42,7 +42,7 @@ function synch_directory_to_target() sep if [ ! -d "$from" ]; then - echo "skipping synch on missing source directory: ${from}" + echo "skipping synch on missing source directory: $from" return 0 fi if [ ! -d "$to" ]; then @@ -69,12 +69,12 @@ function update_archive_drive() sep - echo Target drive currently has... - ls "$target_folder" - if [ $? -ne 0 ]; then - echo "The target location '$target_folder' is not mounted currently, so cannot be updated." + if [ ! -d "$target_folder" -a ! -f "$target_folder" ]; then + echo "Target '$target_folder' is not available currently; not updating." return 1 fi + echo Target drive currently has... + dir "$target_folder" # synch all our targets. for currdir in $MAJOR_ARCHIVE_SOURCES; do -- 2.34.1