From ce840e1e28a470a20197bc3fe418fd44b197827f Mon Sep 17 00:00:00 2001 From: Nikolay Igotti Date: Thu, 14 Jun 2018 11:48:56 +0300 Subject: [PATCH] Make run_konan compatible with msys (#1683) --- cmd/run_konan | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/run_konan b/cmd/run_konan index ff9ce049da4..d72d8cf1a70 100755 --- a/cmd/run_konan +++ b/cmd/run_konan @@ -72,9 +72,9 @@ java_opts=(-ea \ ${JAVA_OPTS}) # Unset some environment variables which are set by XCode and may potentially affect the tool executed. -for VAR in `cat "${KONAN_HOME}/tools/env_blacklist"`; do - unset $VAR -done +while IFS=$'\r' read -r line || [[ -n "$line" ]]; do + unset $line +done < "${KONAN_HOME}/tools/env_blacklist" KONAN_JAR="${KONAN_HOME}/konan/lib/backend.native.jar" KOTLIN_JAR="${KONAN_HOME}/konan/lib/kotlin-compiler.jar"