Skip to content

Commit

Permalink
lib/libtest.sh: improve switchroot() on macOS
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhong Yin <[email protected]>
  • Loading branch information
tcler committed Dec 26, 2024
1 parent dea8c17 commit 7be4664
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/libtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ switchroot() {
echo -e "\E[1;31m{WARN} $P need root permission, please add sudo before $P\E[0m" >&2
exit
else
echo -e "\E[1;30m{WARN} $P need root permission, switch to:\n sudo $SH $P $@\E[0m" >&2
echo -e "\E[1;4m{WARN} $P need root permission, switch to:\n sudo $SH $P $@\E[0m" >&2
exec sudo $SH $P "$@"
fi
}
Expand Down

0 comments on commit 7be4664

Please sign in to comment.