mirror of
https://github.com/samply/bridgehead.git
synced 2025-06-16 21:50:14 +02:00
Fix string comparison in WSL check
This commit is contained in:
@ -8,7 +8,7 @@ log "INFO" "Preparing your system for bridgehead installation ..."
|
|||||||
# Check, if running in WSL
|
# Check, if running in WSL
|
||||||
if [[ $(grep -i Microsoft /proc/version) ]]; then
|
if [[ $(grep -i Microsoft /proc/version) ]]; then
|
||||||
# Check, if systemd is available
|
# 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/"
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user