Skip to content

Commit

Permalink
Fix shellcheck issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rake5k committed Sep 22, 2023
1 parent d19e226 commit 640b226
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/apps/nixos-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 640b226

Please sign in to comment.