aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/install-with-disko2
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