Skip to content

Commit b6aeb4b

Browse files
fix: fix can't run it as expected in freebsd (#5595)
In freebsd, su -c expects a login class argument instead of a command, if -c is preceded by a username, then -c and the arguments that follow will be passed as shell arguments
1 parent acdbefb commit b6aeb4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ sudo_sh_c() {
556556
elif command_exists sudo; then
557557
sh_c "sudo $*"
558558
elif command_exists su; then
559-
sh_c "su - -c '$*'"
559+
sh_c "su root -c '$*'"
560560
else
561561
echoh
562562
echoerr "This script needs to run the following command as root."

0 commit comments

Comments
 (0)