Fix WSL check

Prior to this fix, as implemented it caused a false positive.
Bo Jeanes 2020-06-13 14:30:36 +10:00
parent 70c04afb18
commit 55d7637afb
1 changed files with 1 additions and 1 deletions

View File

@ -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:
# #