From 7a350a8c9b2e3c1d5a8c3a56d0e7958e468ea39a Mon Sep 17 00:00:00 2001 From: Tobias Kussel Date: Fri, 24 Feb 2023 11:29:06 +0100 Subject: [PATCH] Fix string comparison in WSL check --- lib/prepare-system.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/prepare-system.sh b/lib/prepare-system.sh index cfede1e..169ad2c 100755 --- a/lib/prepare-system.sh +++ b/lib/prepare-system.sh @@ -8,7 +8,7 @@ log "INFO" "Preparing your system for bridgehead installation ..." # Check, if running in WSL if [[ $(grep -i Microsoft /proc/version) ]]; then # Check, if systemd is available - if [ $(systemctl is-system-running) -eq "offline" ]; then + if [ $(systemctl is-system-running) = "offline" ]; then log "ERROR" "It seems, that you have no active systemd environment in your WSL. Please follow the guide in https://devblogs.microsoft.com/commandline/systemd-support-is-now-available-in-wsl/" exit 1 fi