pushd "$folder"
if [ $? -ne 0 ]; then
echo Changing to the folder $folder failed.
- exit 1
+ return 1
fi
bash "$FEISTY_MEOW_SCRIPTS/rev_control/rcheckin.sh"
if [ $? -ne 0 ]; then
echo Checking out the latest codes has failed somehow for $folder.
- exit 1
+ return 1
fi
popd
}
if [ ! -d "$from" ]; then
echo "skipping synch on missing source directory $from; this is not normal!"
- exit 1
+ return 1
fi
if [ ! -d "$to" ]; then
echo "skipping synch into non-existent directory $to"
netcp "$from"/* "$to"/
if [ $? -ne 0 ]; then
echo "The synchronization of $from into $to has failed."
- exit 1
+ return 1
fi
}
ls "$target_folder"
if [ $? -ne 0 ]; then
echo "The target location '$target_folder' is not mounted currently, so cannot be updated."
- exit 1
+ return 1
fi
# synch all our targets.