mirror of
https://github.com/radareorg/radare2.git
synced 2024-10-07 02:23:58 +00:00
Fix for --without-pull not working in install.sh ##build
This commit is contained in:
parent
a45ad575b1
commit
58e795ec28
@ -32,6 +32,9 @@ while : ; do
|
|||||||
shift
|
shift
|
||||||
continue
|
continue
|
||||||
;;
|
;;
|
||||||
|
"--without-pull")
|
||||||
|
export WITHOUT_PULL=1
|
||||||
|
;;
|
||||||
-*)
|
-*)
|
||||||
# just for the penguin face case
|
# just for the penguin face case
|
||||||
ARGS="${ARGS} $1"
|
ARGS="${ARGS} $1"
|
||||||
@ -62,7 +65,7 @@ cd "$(dirname $0)"/..
|
|||||||
pwd
|
pwd
|
||||||
|
|
||||||
# update
|
# update
|
||||||
if [ "$1" != "--without-pull" ]; then
|
if [ -z "$WITHOUT_PULL" ]; then
|
||||||
if [ -d .git ]; then
|
if [ -d .git ]; then
|
||||||
git branch | grep "^\* master" > /dev/null
|
git branch | grep "^\* master" > /dev/null
|
||||||
if [ $? = 0 ]; then
|
if [ $? = 0 ]; then
|
||||||
@ -76,9 +79,6 @@ if [ "$1" != "--without-pull" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
|
||||||
export WITHOUT_PULL=1
|
|
||||||
shift
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
umask 0002
|
umask 0002
|
||||||
|
Loading…
Reference in New Issue
Block a user