From 7a7baca51f1d0b0b41d98c69890b7105d581e8f4 Mon Sep 17 00:00:00 2001 From: Mark Nipper Date: Sat, 12 Oct 2024 15:51:10 -0700 Subject: Handle finding multiple passwd --- scripts/install-with-disko | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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 -- cgit v1.2.3