diff options
author | Mark Nipper <nipsy@bitgnome.net> | 2024-10-12 15:51:10 -0700 |
---|---|---|
committer | Mark Nipper <nipsy@bitgnome.net> | 2024-10-12 15:51:10 -0700 |
commit | 7a7baca51f1d0b0b41d98c69890b7105d581e8f4 (patch) | |
tree | 7870a95bb1659eacf0dfc7d6ad58d952f76f1cec | |
parent | a9402d76500eab999989599f559a1cbc1ecccfd8 (diff) | |
download | nix-7a7baca51f1d0b0b41d98c69890b7105d581e8f4.tar nix-7a7baca51f1d0b0b41d98c69890b7105d581e8f4.tar.gz nix-7a7baca51f1d0b0b41d98c69890b7105d581e8f4.tar.bz2 nix-7a7baca51f1d0b0b41d98c69890b7105d581e8f4.tar.lz nix-7a7baca51f1d0b0b41d98c69890b7105d581e8f4.tar.xz nix-7a7baca51f1d0b0b41d98c69890b7105d581e8f4.tar.zst nix-7a7baca51f1d0b0b41d98c69890b7105d581e8f4.zip |
Handle finding multiple passwd
-rwxr-xr-x | scripts/install-with-disko | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/install-with-disko b/scripts/install-with-disko index 00bcd5d..ef21f61 100755 --- a/scripts/install-with-disko +++ b/scripts/install-with-disko @@ -113,7 +113,7 @@ if [[ "${REPLY}" == "y" ]]; then read -q "?Do you want to set a password for the user ${i}? [y/N] " echo if [[ "${REPLY}" == "y" ]]; then - sudo chroot /mnt /$(find /mnt/nix/store/*-shadow-*/bin/passwd -executable -name passwd | cut -d/ -f3-) ${i} + sudo chroot /mnt /$(find /mnt/nix/store/*-shadow-*/bin/passwd -executable -name passwd | cut -d/ -f3- | head -1) ${i} fi echo done |