From 8bc3b033d1d2e0a282c6f6e625846870706760ab Mon Sep 17 00:00:00 2001 From: iliajie Date: Wed, 10 May 2023 18:47:42 +0300 Subject: [PATCH] Fix to quote `$(id -u)` to prevent word splitting --- virtualmin-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtualmin-install.sh b/virtualmin-install.sh index b0bec5f..fe99caf 100644 --- a/virtualmin-install.sh +++ b/virtualmin-install.sh @@ -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"