From 26a79444701248687e98fa7949172f1dfd8dea30 Mon Sep 17 00:00:00 2001 From: idk Date: Wed, 7 Sep 2022 12:40:05 -0400 Subject: [PATCH] add safety checks around Windows config stuff --- config.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.sh b/config.sh index bbd2614..3bfb331 100755 --- a/config.sh +++ b/config.sh @@ -18,7 +18,7 @@ if [[ -n "$IS_WSL" || -n "$WSL_DISTRO_NAME" ]]; then export JAVA_HOME="/c/Program Files/Java/jdk-18.0.2" fi -if "${uname}" != "Linux"; then +if [ "${uname}" != "Linux" ]; then PATH="/c/Program Files/Java/jdk-18.0.2/bin/:$PATH:/c/Program Files/Java/jdk-18.0.2/bin/" export PATH="/c/Program Files/Java/jdk-18.0.2/bin/:$PATH:/c/Program Files/Java/jdk-18.0.2/bin/" JAVA_HOME="/c/Program Files/Java/jdk-18.0.2" @@ -66,7 +66,7 @@ if [[ -n "$IS_WSL" || -n "$WSL_DISTRO_NAME" ]]; then export PATH="$PATH:/c/Program Files (x86)/Windows Kits/10/App Certification Kit/" fi -if "${uname}" != "Linux"; then +if [ "${uname}" != "Linux" ]; then PATH="$PATH:/c/Program Files (x86)/Windows Kits/10/App Certification Kit/" export PATH="$PATH:/c/Program Files (x86)/Windows Kits/10/App Certification Kit/" fi \ No newline at end of file