fix the restore UX flow and some other small improvements

Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
szaimen 2022-03-22 23:18:46 +01:00
parent 33c822fd1e
commit 3eede90e86
2 changed files with 40 additions and 36 deletions

View file

@ -32,7 +32,7 @@ if ! mountpoint -q /mnt/borgbackup; then
fi
# Check if target is empty
if [ "$BORG_MODE" != backup ] && ! [ -f "$BORG_BACKUP_DIRECTORY/config" ]; then
if [ "$BORG_MODE" != backup ] && [ "$BORG_MODE" != test ] && ! [ -f "$BORG_BACKUP_DIRECTORY/config" ]; then
echo "The repository is empty. cannot perform check or restore."
exit 1
fi