mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-03-04 01:38:41 +08:00
ad a test to rsync script
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
1e7161d524
commit
c79d46b868
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue