From 82408fee2e23530b363ba227c21d730c29d84d8e Mon Sep 17 00:00:00 2001 From: th33xitus <31533186+th33xitus@users.noreply.github.com> Date: Sat, 15 Aug 2020 19:27:29 +0200 Subject: [PATCH] fix: kiauh update function --- scripts/update.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/update.sh b/scripts/update.sh index c387307..65491ca 100644 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -1,5 +1,5 @@ update_kiauh(){ - if [ $KIAUH_UPDATE_AVAIL -gt 0 ]; then + if [ "$KIAUH_UPDATE_AVAIL" = "true" ]; then status_msg "Updating KIAUH ..." cd ${HOME}/kiauh git pull && ok_msg "Update complete! Please restart KIAUH." @@ -71,4 +71,4 @@ update_moonraker(){ fi ok_msg "Update complete!" start_moonraker && sleep 2 && start_klipper -} \ No newline at end of file +}