Merge branch 'issue-36' into 'antifascista'
fix: comprobar actualizacion de hainish See merge request sutty/haini.sh!45
This commit is contained in:
commit
834d485b18
1 changed files with 2 additions and 2 deletions
4
haini.sh
4
haini.sh
|
@ -224,10 +224,10 @@ actualizar() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -n "Actualizando haini.sh... " >&2
|
echo -n "Actualizando haini.sh... " >&2
|
||||||
if ping -q -c 1 0xacab.org; then
|
if ping -q -c 1 0xacab.org >/dev/null 2>&1; then
|
||||||
git -C "$DIR" pull --ff-only
|
git -C "$DIR" pull --ff-only
|
||||||
|
|
||||||
if test "$DIR/.git/FETCH_HEAD" -o "$DIR/.git/ORIG_HEAD"; then
|
if test "$DIR/.git/FETCH_HEAD" -ot "$DIR/.git/ORIG_HEAD"; then
|
||||||
echo "haini.sh se actualizó, por favor volvé a ejecutar el comando" >&2
|
echo "haini.sh se actualizó, por favor volvé a ejecutar el comando" >&2
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue