- 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."