diff --git a/setup.sh b/setup.sh index d04205756..e14562219 100755 --- a/setup.sh +++ b/setup.sh @@ -662,7 +662,7 @@ if [ ! -f "$config_dir/.pre-install" ]; then fi # Test if we have systemd system -systemctlcmd=$(which systemctl 2>/dev/null) +systemctlcmd=$(command -v systemctl 2>/dev/null || :) if [ -x "$systemctlcmd" ]; then initsys=$(cat /proc/1/comm 2>/dev/null) if [ "$initsys" != "systemd" ]; then