From a83a6421a29a21a5972307cf2637557c919c5679 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Mah=C3=A9?= Date: Sun, 30 Dec 2018 22:38:51 +0100 Subject: [PATCH 1/2] Typo --- mister_updater.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mister_updater.sh b/mister_updater.sh index e69b8be..025f00d 100644 --- a/mister_updater.sh +++ b/mister_updater.sh @@ -89,7 +89,7 @@ TEMP_PATH="/tmp" if ! ping -q -w1 -c1 google.com &>/dev/null then - echo "No Interent connection" + echo "No Internet connection" exit 1 fi @@ -385,4 +385,4 @@ then else echo "You should reboot" fi -fi \ No newline at end of file +fi From 5922f6af3c8502a909324947b25c5aeeb3ebef98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Mah=C3=A9?= Date: Mon, 31 Dec 2018 11:23:39 +0100 Subject: [PATCH 2/2] explicit exit status Well-behaved UNIX commands, programs, and utilities return a 0 exit code upon successful completion. --- mister_updater.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mister_updater.sh b/mister_updater.sh index e69b8be..3e6fd4e 100644 --- a/mister_updater.sh +++ b/mister_updater.sh @@ -385,4 +385,6 @@ then else echo "You should reboot" fi -fi \ No newline at end of file +fi + +exit 0