mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00: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
|
exit 1
|
||||||
fi
|
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
|
if ! [ -d "$DRIVE_MOUNTPOINT" ]; then
|
||||||
echo "The drive mountpoint must be an existing directory"
|
echo "The drive mountpoint must be an existing directory"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue