Skip to content

Commit f2df458

Browse files
committed
ch whoami to POSIX id -u -n
1 parent 31b5d9f commit f2df458

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/install-nix-from-closure.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ checkingRequirements() { # This function must have checks only. Without makin
208208
Environment variable USER is not set.
209209
Maybe running inside container.
210210
"
211-
USER="$(whoami)" # Taking username from UID
211+
USER="$(id -u -n)" # id is POSIX
212212
print "Detected username: $USER"
213213
fi
214214

0 commit comments

Comments
 (0)