-a instead of -L - Bash conditional expressions

see http://www.gnu.org/software/bash/manual/bashref.html#Bash-Conditional-Expressions
This commit is contained in:
Jason Coombs 2016-06-30 16:46:51 -10:00 committed by GitHub
parent 5d5ea2ffd0
commit 9ce64fa648

View file

@ -10,14 +10,14 @@ if [ ! -f "$root/build/env.sh" ]; then
fi fi
# Create build/bin if it doesn't exist yet. # Create build/bin if it doesn't exist yet.
if [ ! -L "$root/build/bin" ]; then if [ ! -a "$root/build/bin" ]; then
mkdir -p "$root/build/bin" mkdir -p "$root/build/bin"
fi fi
# Create fake Go workspace if it doesn't exist yet. # Create fake Go workspace if it doesn't exist yet.
workspace="$root/../_go_build/_workspace" workspace="$root/../_go_build/_workspace"
ethdir="$workspace/src/github.com/ethereum" ethdir="$workspace/src/github.com/ethereum"
if [ ! -L "$ethdir/go-ethereum" ]; then if [ ! -a "$ethdir/go-ethereum" ]; then
mkdir -p "$ethdir" mkdir -p "$ethdir"
cd "$ethdir" cd "$ethdir"
ln -s "$root" go-ethereum ln -s "$root" go-ethereum