From 4207f4b6c571638af8e0c60f520a02c3d6f35385 Mon Sep 17 00:00:00 2001 From: Jason Coombs Date: Thu, 30 Jun 2016 18:32:24 -1000 Subject: [PATCH] -e not -a -a did not work as expected but -e does. -e should detect existence of either symbolic link or directory and return true. see: http://www.gnu.org/software/bash/manual/bashref.html#Bash-Conditional-Expressions --- build/env.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/env.sh b/build/env.sh index d0d9c31488..2cdd3553ec 100755 --- a/build/env.sh +++ b/build/env.sh @@ -10,14 +10,14 @@ if [ ! -f "$root/build/env.sh" ]; then fi # Create build/bin if it doesn't exist yet. -if [ ! -a "$root/build/bin" ]; then +if [ ! -e "$root/build/bin" ]; then mkdir -p "$root/build/bin" fi # Create fake Go workspace if it doesn't exist yet. workspace="$root/../_go_build/_workspace" ethdir="$workspace/src/github.com/ethereum" -if [ ! -a "$ethdir/go-ethereum" ]; then +if [ ! -e "$ethdir/go-ethereum" ]; then mkdir -p "$ethdir" cd "$ethdir" ln -s "$root" go-ethereum