mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +00:00
-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
This commit is contained in:
parent
9ce64fa648
commit
4207f4b6c5
1 changed files with 2 additions and 2 deletions
|
|
@ -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 [ ! -a "$root/build/bin" ]; then
|
if [ ! -e "$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 [ ! -a "$ethdir/go-ethereum" ]; then
|
if [ ! -e "$ethdir/go-ethereum" ]; then
|
||||||
mkdir -p "$ethdir"
|
mkdir -p "$ethdir"
|
||||||
cd "$ethdir"
|
cd "$ethdir"
|
||||||
ln -s "$root" go-ethereum
|
ln -s "$root" go-ethereum
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue