Check for .git extension in upstream remote in install scripts (#19808)

This commit is contained in:
Lazula 2022-03-11 06:16:53 -06:00 committed by GitHub
parent 63d4172d94
commit 3fc98d4e7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -68,7 +68,7 @@ if [ "$1" != "--without-pull" ]; then
if [ $? = 0 ]; then
echo "WARNING: Updating from remote repository"
# Attempt to update from an existing remote
UPSTREAM_REMOTE=$(git remote -v | grep 'radareorg/radare2 (fetch)' | cut -f1 | head -n1)
UPSTREAM_REMOTE=$(git remote -v | grep 'radareorg/radare2\(\.git\)\? (fetch)' | cut -f1 | head -n1)
if [ -n "$UPSTREAM_REMOTE" ]; then
git pull "$UPSTREAM_REMOTE" master
else

View File

@ -8,7 +8,7 @@ export ANDROID=1
rm -f libr/include/r_version.h
cp -f dist/plugins-cfg/plugins.termux.cfg plugins.cfg
# Attempt to update from an existing remote
UPSTREAM_REMOTE=$(git remote -v | grep 'radareorg/radare2 (fetch)' | cut -f1 | head -n1)
UPSTREAM_REMOTE=$(git remote -v | grep 'radareorg/radare2\(\.git\)\? (fetch)' | cut -f1 | head -n1)
if [ -n "$UPSTREAM_REMOTE" ]; then
git pull "$UPSTREAM_REMOTE" master
else

View File

@ -54,7 +54,7 @@ if [ $WITHOUT_PULL -eq 0 ]; then
if [ $? = 0 ]; then
echo "WARNING: Updating from remote repository"
# Attempt to update from an existing remote
UPSTREAM_REMOTE=$(git remote -v | grep 'radareorg/radare2 (fetch)' | cut -f1 | head -n1)
UPSTREAM_REMOTE=$(git remote -v | grep 'radareorg/radare2\(\.git\)\? (fetch)' | cut -f1 | head -n1)
if [ -n "$UPSTREAM_REMOTE" ]; then
git pull "$UPSTREAM_REMOTE" master
else