From e8e6265bae73f9dd85e78426a9142faca163ae06 Mon Sep 17 00:00:00 2001 From: Ondrej Lhotak Date: Fri, 20 May 2016 10:40:53 -0400 Subject: fix newline in DOTTY_ROOT when cd produces output --- bin/dotc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/dotc b/bin/dotc index f6c1db6c1..c52abc3d4 100755 --- a/bin/dotc +++ b/bin/dotc @@ -8,7 +8,7 @@ if [[ "$DOTTY_ROOT" == "" ]]; then DOTTY_ROOT="$0" fi DOTTY_ROOT="`dirname \"$DOTTY_ROOT\"`" -DOTTY_ROOT="`( cd \"$DOTTY_ROOT\" && pwd )`/.." # absolute +DOTTY_ROOT="`( cd \"$DOTTY_ROOT\" >& /dev/null && pwd )`/.." # absolute # Finds in dotty build file a line containing PATTERN # returns last "" escaped string in this line -- cgit v1.2.3