From 850f8501400f607d5243d8c885c27a59985a6e46 Mon Sep 17 00:00:00 2001 From: Gyorgy Berenyi Date: Thu, 13 Jul 2023 09:57:39 +0000 Subject: [PATCH] Update 'install.sh' --- install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 0eae9e2..7b709b7 100755 --- a/install.sh +++ b/install.sh @@ -456,9 +456,10 @@ if [ ! -f /etc/wsl.conf ]; then $SUDO_CMD touch /etc/wsl.conf; fi -SYSTEM_SETTINGS=$(grep -Pzow '\[boot\]\nsystemd\=true' /etc/wsl.conf); +SYSTEM_SETTINGS=$(grep -Pzow '\[boot\]\nsystemd\=true' /etc/wsl.conf 2> /dev/null); if [ "$SYSTEM_SETTINGS" == "" ]; then - echo "[boot]\nsystemd=true" | $SUDO_CMD tee /etc/wsl.conf; + echo "[boot] +systemd=true" | $SUDO_CMD tee /etc/wsl.conf; echo "Not corresponding wsl configuration found, modified and need a WSL system restart from Windows terminal"; fi