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 0b2babe commit 6d5a559
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/apps/nixos-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ is_nvme_disk() {
}

get_partition() {
# shellcheck disable=SC2310
if is_nvme_disk; then
echo "${DISK}p${1}"
else
Expand Down Expand Up @@ -141,6 +142,7 @@ install() {

### Pull the trigger

# shellcheck disable=SC2310
if _read_boolean "Do you want to DELETE ALL PARTITIONS?" N; then
partition
create_volumes
Expand All @@ -155,6 +157,7 @@ if [[ ${LVM_PV_NUM_ACTIVE} -lt 1 ]]; then
decrypt_lvm
fi

# shellcheck disable=SC2310
if _read_boolean "Do you want to INSTALL NixOS now?" N; then
install
fi
Expand Down

0 comments on commit 6d5a559

Please sign in to comment.