From 640b226040b43e5b5085d13f14aefbb65ddbc825 Mon Sep 17 00:00:00 2001 From: Christian Harke Date: Fri, 22 Sep 2023 17:38:04 +0200 Subject: [PATCH] Fix shellcheck issues --- lib/apps/nixos-install.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/apps/nixos-install.sh b/lib/apps/nixos-install.sh index 05e1116e..bdbadf07 100644 --- a/lib/apps/nixos-install.sh +++ b/lib/apps/nixos-install.sh @@ -141,7 +141,9 @@ install() { ### Pull the trigger -if _read_boolean "Do you want to DELETE ALL PARTITIONS?" N; then +DO_PARTITION="$(_read_boolean "Do you want to DELETE ALL PARTITIONS?" N)" +readonly DO_PARTITION +if "${DO_PARTITION}"; then partition create_volumes create_filesystems @@ -155,7 +157,9 @@ if [[ ${LVM_PV_NUM_ACTIVE} -lt 1 ]]; then decrypt_lvm fi -if _read_boolean "Do you want to INSTALL NixOS now?" N; then +DO_INSTALL="$(_read_boolean "Do you want to INSTALL NixOS now?" N)" +readonly DO_INSTALL +if "${DO_INSTALL}"; then install fi