From f81f66da88631c96f958b5d12946a3518193fd9c Mon Sep 17 00:00:00 2001 From: Anish Lakhwara Date: Fri, 13 Jan 2023 23:35:32 +1000 Subject: [PATCH] follow shellcheck for install-yubikey --- install-yubikey.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/install-yubikey.sh b/install-yubikey.sh index b9b713ff..81b5447f 100755 --- a/install-yubikey.sh +++ b/install-yubikey.sh @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + rbtohex() { ( od -An -vtx1 | tr -d ' \n' ) } @@ -64,7 +66,7 @@ mkfs.btrfs -L "$FSROOT" "/dev/partitions/$FSROOT" #touch /mnt-root/nix-store.squashfs mount "/dev/partitions/$FSROOT" /mnt -cd /mnt +cd /mnt || exit btrfs subvolume create root btrfs subvolume create home cd @@ -167,6 +169,6 @@ cat > /mnt/etc/nixos/configuration.nix <<'endmsg' endmsg -cd /mnt +cd /mnt || exit nixos-install --root /mnt passwd