Skip to content

Commit 9068049

Browse files
committed
ch test -O to POSIX ls -ld "$HOME" | cut -d' ' -f 3
1 parent f2df458 commit 9068049

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
@@ -250,7 +250,7 @@ checkingRequirements() { # This function must have checks only. Without makin
250250
"
251251
fi
252252

253-
if [ ! -O "$HOME" ]; then
253+
if [ "$(ls -ld "$HOME" | cut -d' ' -f 3)" = "$USER" ]; then # is POSIX, no `test -O`
254254
error "
255255
256256
Home directory $HOME is not owned by user $USER,

0 commit comments

Comments
 (0)