Merge branch 'issue-36' into 'antifascista'

fix: comprobar actualizacion de hainish

See merge request sutty/haini.sh!45
This commit is contained in:
Nulo 2022-10-30 14:30:01 +00:00
commit 834d485b18

View file

@ -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