fix setup

This commit is contained in:
2024-11-01 20:01:48 +01:00
parent 0f2b7e358d
commit 98290acdd0
3 changed files with 11 additions and 5 deletions

View File

@@ -27,7 +27,8 @@ fi
folderlist=$5
if [[ "$folderlist" == "*" || -z "$folderlist" ]]; then
lstfile="${tribe}/${mainfolder}"
#carefull lstfile must start by a space
lstfile=" ${tribe}/${mainfolder}"
else
lstfile=""
for folder in ${folderlist}; do
@@ -35,7 +36,7 @@ else
done
fi
cd "$pathtown"
tar -czf "${tribe}/backups/${prefix}.${mainfolder}.tar.gz" "$lstfile"
tar -czf "${tribe}/backups/${prefix}.${mainfolder}.tar.gz"$lstfile
if [ $? -eq 0 ]; then
echo "Archive created successfully ${tribe}/backups/${prefix}.${mainfolder}.tar.gz"