summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorIvan Popovych <ivan@ipvych.com>2025-06-19 21:53:07 +0300
committerjgart <jgart@dismail.de>2025-06-21 12:57:30 -0400
commite28156c212bc7d6de8c0f7d44f8f1cbe96d43f34 (patch)
tree75fe76ce9859a841f71123b3efaa677e4edce106 /etc
parent5b307267d698aa1b76dd03102107599731feb219 (diff)
etc: guix-install.sh: Remove dependency on "which".
* etc/guix-install.sh: Remove dependency on "which". Change-Id: I2f93ade98f92ab28b4657fa213b9164a148437e6 Signed-off-by: jgart <jgart@dismail.de>
Diffstat (limited to 'etc')
-rwxr-xr-xetc/guix-install.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/etc/guix-install.sh b/etc/guix-install.sh
index 68e96166a4..3bf3a4a55e 100755
--- a/etc/guix-install.sh
+++ b/etc/guix-install.sh
@@ -68,7 +68,6 @@ REQUIRE=(
"wget"
"gpg"
"grep"
- "which"
"sed"
"sort"
"getent"
@@ -458,11 +457,11 @@ create_account()
if id "$user" &>/dev/null; then
_msg_info "user '$user' is already in the system, reset"
usermod -g "$group" -G "$supplementary_groups" \
- -d /var/empty -s "$(which nologin)" \
+ -d /var/empty -s "$(command -v nologin)" \
-c "$comment" "$user"
else
useradd -g "$group" -G "$supplementary_groups" \
- -d /var/empty -s "$(which nologin)" \
+ -d /var/empty -s "$(command -v nologin)" \
-c "$comment" --system "$user"
_msg_pass "user added <$user>"
fi