Skip to content

Commit 7d30580

Browse files
authored
unshare may print to stderr
1 parent 626a8f0 commit 7d30580

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

useful-tools/hooks/fix-namespaces.hook

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ DO_NOT_ASK="Do you wish to not see this message again about unprivileged user-na
4141

4242
# do not bother if unshare or /bin/true are missing
4343
_sanity_check() {
44-
if command -v /bin/true && unshare --help | grep -q -- '--user'; then
44+
if command -v /bin/true && unshare --help 2>&1 | grep -q -- '--user'; then
4545
return 0
4646
fi
4747
return 1

0 commit comments

Comments
 (0)