ad a test to rsync script

Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
szaimen 2022-03-26 19:38:17 +01:00
parent 1e7161d524
commit c79d46b868

View file

@ -209,6 +209,11 @@ if ! [ -d "$SOURCE_DIRECTORY" ]; then
exit 1
fi
if [ -z "$(ls -A "$SOURCE_DIRECTORY/")" ]; then
echo "The source directory is empty which is not allowed."
exit 1
fi
if ! [ -d "$DRIVE_MOUNTPOINT" ]; then
echo "The drive mountpoint must be an existing directory"
exit 1