From 55d7637afb8653c4cb7cdf3055ee14a7b19637b8 Mon Sep 17 00:00:00 2001 From: Bo Jeanes Date: Sat, 13 Jun 2020 14:30:36 +1000 Subject: [PATCH] Fix WSL check Prior to this fix, as implemented it caused a false positive. --- shells/common/wsl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shells/common/wsl.sh b/shells/common/wsl.sh index 52b4f14..7a1e3cf 100644 --- a/shells/common/wsl.sh +++ b/shells/common/wsl.sh @@ -1,4 +1,4 @@ -if [ -n ${WSL_DISTRO_NAME:-} ] || grep -sqiE 'WSL' /proc/sys/kernel/osrelease; then +if [ -n "${WSL_DISTRO_NAME:-}" ] || grep -sqiE 'WSL' /proc/sys/kernel/osrelease; then # # Talk to Windows' SSH-Agent when under WSL, using https://github.com/rupor-github/wsl-ssh-agent # # wsl-ssh-agent started with: # #