From 634d4dcc657b50fda9ba6477a0ee55410792d4a2 Mon Sep 17 00:00:00 2001 From: Laborratte5 <49961317+Laborratte5@users.noreply.github.com> Date: Mon, 14 Aug 2023 22:17:38 +0200 Subject: [PATCH] Use interactive shell for input This allows tab completion for path entering --- backup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backup.sh b/backup.sh index 7487dee..d784065 100755 --- a/backup.sh +++ b/backup.sh @@ -1,6 +1,6 @@ #!/bin/bash -read -p "Drive to backup: " DRIVE_TO_BACKUP -read -p "Location of backup: " BACKUP_LOCATION +read -e -p "Drive to backup: " DRIVE_TO_BACKUP +read -e -p "Location of backup: " BACKUP_LOCATION DEVICE_NAME=$(basename $DRIVE_TO_BACKUP)