From eeda7c61c01c4994c59ce58e92f5f5fd539eadd3 Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Fri, 14 Jul 2023 20:58:05 +0200 Subject: [PATCH] install stage 1 and 2, backup-fs: print a newline after yesno --- install-stage1.sh | 2 ++ install-stage2.sh | 2 ++ notes_to_self.txt | 1 - opt/backup-fs | 2 ++ 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/install-stage1.sh b/install-stage1.sh index ec1de6e..662c9a8 100644 --- a/install-stage1.sh +++ b/install-stage1.sh @@ -26,9 +26,11 @@ function yesno { read -p "[y/n] " -n1 DISCARD_ME case "$DISCARD_ME" in y) + echo "" return 0 ;; n) + echo "" return 1 ;; *) diff --git a/install-stage2.sh b/install-stage2.sh index 644dd03..98b7ebc 100644 --- a/install-stage2.sh +++ b/install-stage2.sh @@ -14,9 +14,11 @@ function yesno { read -p "[y/n] " -n1 DISCARD_ME case "$DISCARD_ME" in y) + echo "" return 0 ;; n) + echo "" return 1 ;; *) diff --git a/notes_to_self.txt b/notes_to_self.txt index a5946df..d647042 100644 --- a/notes_to_self.txt +++ b/notes_to_self.txt @@ -16,7 +16,6 @@ vkpurge old stuff - only keep 2 vkpurgeable kernels overview of the installation process at the start overall progress indication (step x out of y) exclude optical drives -add newline after yesno (also in backup script) add bash completion along the line somewhere replace OpenBox with something lighter allow unprivileged users to mount / unmount disks in GUI sessions diff --git a/opt/backup-fs b/opt/backup-fs index ddfe13e..0095a14 100644 --- a/opt/backup-fs +++ b/opt/backup-fs @@ -14,9 +14,11 @@ function yesno { read -p "[y/n] " -n1 DISCARD_ME < $TTY_OR_CONSOLE case "$DISCARD_ME" in y) + echo "" return 0 ;; n) + echo "" return 1 ;; *)