projects
/
feisty_meow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7c7d191
)
minor improvements
author
Fred T. Hamster
<fred@gruntose.com>
Thu, 31 Jan 2019 06:02:59 +0000
(06:02 +0000)
committer
Fred T. Hamster
<fred@gruntose.com>
Thu, 31 Jan 2019 06:02:59 +0000
(06:02 +0000)
scripts/archival/general_updater.sh
patch
|
blob
|
history
diff --git
a/scripts/archival/general_updater.sh
b/scripts/archival/general_updater.sh
index c0431eee786421aafbf923d835fc56a8dc8640aa..baca195c08edf92a36bf3c63db74d6d1450b340c 100644
(file)
--- 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
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
return 0
fi
if [ ! -d "$to" ]; then
@@
-69,12
+69,12
@@
function update_archive_drive()
sep
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
return 1
fi
+ echo Target drive currently has...
+ dir "$target_folder"
# synch all our targets.
for currdir in $MAJOR_ARCHIVE_SOURCES; do
# synch all our targets.
for currdir in $MAJOR_ARCHIVE_SOURCES; do