Updates for rsync

This commit is contained in:
Stephan Raabe
2023-11-25 16:53:12 +01:00
parent 4a657c7f11
commit 49093fef5d
4 changed files with 40 additions and 2 deletions

View File

@@ -34,6 +34,19 @@ _isInstalledYay() {
return; #false
}
_isFolderEmpty() {
folder="$1"
if [ -d $folder ] ;then
if [ -z "$(ls -A $folder)" ]; then
echo 0
else
echo 1
fi
else
echo 1
fi
}
# ------------------------------------------------------
# Function Install all package if not installed
# ------------------------------------------------------