From 0c2838388feda3e105fb8db0e7ade41c609ea5d3 Mon Sep 17 00:00:00 2001 From: Lukas Wurzinger Date: Sat, 14 Dec 2024 11:59:14 +0100 Subject: [PATCH] disk --- disk.sh => disk.bash | 6 +++--- flake.nix | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) rename disk.sh => disk.bash (96%) diff --git a/disk.sh b/disk.bash similarity index 96% rename from disk.sh rename to disk.bash index 739a820..7ddfe79 100755 --- a/disk.sh +++ b/disk.bash @@ -68,7 +68,7 @@ mkfs.vfat -F 32 -n "$bootlbl" -- "$bootfs" >/dev/null while true; do read -r -p 'Do you want your main partition to be encrypted [y/N]? ' luks case "$luks" in - [Yy]*) + ([Yy]*) while true; do read -r -s -p 'Enter password: ' password printf '\n' @@ -85,11 +85,11 @@ while true; do mainfs=/dev/mapper/$mapping break ;; - '' | [Nn]*) + ('' | [Nn]*) mainfs=$mainblkdev break ;; - *) printf 'Please answer with yes or no\n' 1>&2 ;; + (*) printf 'Please answer with yes or no\n' 1>&2 ;; esac done diff --git a/flake.nix b/flake.nix index 3c614a2..fd58c74 100644 --- a/flake.nix +++ b/flake.nix @@ -97,7 +97,7 @@ dosfstools ]; - text = builtins.readFile ./disk.sh; + text = builtins.readFile ./disk.bash; }; }; };