Skip to content

Commit

Permalink
tools/testscript: avoid unbound variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Rufflewind committed Sep 16, 2017
1 parent 955e05e commit 7e7b3c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/testscript
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ prepare() {

# workaround for commercialhaskell/stack#3213:
# use official GHC tarball instead of stack's patched tarball
if [ "$LOCALAPPDATA" ] && printf "%s\n" "$STACK" | grep '\<lts-2\>'; then
if [ "${LOCALAPPDATA-}" ] && printf "%s\n" "$STACK" | grep '\<lts-2\>'; then
dir=`cygpath -u "$LOCALAPPDATA"`/Programs/stack/x86_64-windows
mkdir -p "$dir"
curl -L "https://downloads.haskell.org/~ghc/7.8.4/ghc-7.8.4-x86_64-unknown-mingw32.tar.xz" | tar -C "$dir" -xJ
Expand Down

0 comments on commit 7e7b3c2

Please sign in to comment.