This commit is contained in:
DoTheEvo 2023-09-16 12:30:15 +02:00
parent 9c1d0a21a9
commit 2bf9452565
1 changed files with 2 additions and 2 deletions

View File

@ -175,13 +175,13 @@ kopia repository disconnect
IFS=' ' read -ra paths <<< "$BACKUP_THIS"
for path in "${paths[@]}"; do
if [ ! -e "$path" ]; then
echo "Error: Target '$path' does not exist."
echo "ERROR: Backup target '$path' does not exist."
exit 1
fi
done
if [ ! -d "$REPOSITORY_PATH" ]; then
echo "Error: Directory '$REPOSITORY_PATH' does not exist."
echo "ERROR: Directory '$REPOSITORY_PATH' does not exist."
exit 1
fi
```