Skip to content

Commit

Permalink
Fix to quote $(id -u) to prevent word splitting
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed May 10, 2023
1 parent d52dfd0 commit 8bc3b03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virtualmin-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ download() {
}

# Only root can run this
if [ $(id -u) -ne 0 ]; then
if [ "$(id -u)" -ne 0 ]; then
uname -a | grep -i CYGWIN >/dev/null
if [ "$?" != "0" ]; then
fatal "${RED}Fatal:${NORMAL} The Virtualmin install script must be run as root"
Expand Down

0 comments on commit 8bc3b03

Please sign in to comment.