From 2193bcde9974efe080429c74a1f38ad2d8e0e4f0 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 21 Feb 2023 08:26:52 -0700 Subject: [PATCH] fix --- debian.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/debian.sh b/debian.sh index af9b6bf..4a8b082 100755 --- a/debian.sh +++ b/debian.sh @@ -140,13 +140,13 @@ os-restore() { BACKUP_DISK_IMAGES="/var/backups" fi - if [ "${3}" ]; then - BACKUP_DISK_IMAGES="${3}" + if [ "${4}" ]; then + BACKUP_DISK_IMAGES="${4}" fi partitions rm -rf $TARGET/usr $TARGET/sbin $TARGET/lib32 $TARGET/libx32 $TARGET/lib $TARGET/vmlinuz* $TARGET/initrd* $TARGET/bin $TARGET/var $TARGET/root $TARGET/opt $TARGET/etc $TARGET/run - echo "[Restoring OS tarfile from $BACKUP_DISK_IMAGES/$1.tgz]" + echo "[Restoring OS tarfile from $BACKUP_DISK_IMAGES/$2.tgz]" echo tar xfp $BACKUP_DISK_IMAGES/$2.tgz -C $TARGET/