From 9bd12bc8fdf6cb75a078d8c408f8b7b7357f6033 Mon Sep 17 00:00:00 2001 From: f Date: Sat, 29 Oct 2022 18:25:04 -0300 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20typo=20en=20la=20comprobaci=C3=B3n?= =?UTF-8?q?=20#36?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- haini.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/haini.sh b/haini.sh index 112aa4e..703cfb9 100755 --- a/haini.sh +++ b/haini.sh @@ -227,7 +227,7 @@ actualizar() { if ping -q -c 1 0xacab.org; then 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 exit 0 fi From 8698a22f0a22f3ef8155802e71adb7055a3467ac Mon Sep 17 00:00:00 2001 From: f Date: Sat, 29 Oct 2022 18:25:22 -0300 Subject: [PATCH 2/2] fix: no mostrar la salida del ping relacionado con #28 --- haini.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/haini.sh b/haini.sh index 703cfb9..b51c7f1 100755 --- a/haini.sh +++ b/haini.sh @@ -224,7 +224,7 @@ actualizar() { fi 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 if test "$DIR/.git/FETCH_HEAD" -ot "$DIR/.git/ORIG_HEAD"; then