From 0d1fe667b6011d5ecc835e880fd5daf127318602 Mon Sep 17 00:00:00 2001 From: Gyorgy Berenyi Date: Thu, 13 Jul 2023 09:45:13 +0000 Subject: [PATCH] Update 'install.sh' --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 817ea4f..9fb12e7 100755 --- a/install.sh +++ b/install.sh @@ -456,10 +456,10 @@ if [ ! -f /etc/wsl.conf ]; then $SUDO_CMD touch /etc/wsl.conf; fi -SYSTEM_SETTINGS=$($SUDO_CMD grep -Pzow '\[boot\]\nsystemd\=true' /etc/wsl.conf); +SYSTEM_SETTINGS=$(grep -Pzow '\[boot\]\nsystemd\=true' /etc/wsl.conf); if [ "$SYSTEM_SETTINGS" == "" ]; then - $SUDO_CMD echo "[boot] -systemd=true" | $SUDO_CMD cat /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