Skip to content

Commit 65a7c6e

Browse files
committed
fix updater loop
1 parent cd7a438 commit 65a7c6e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

shelldio.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,13 +376,13 @@ self_update() {
376376
printf "${BLUE}%s${RESET}\n" "Γίνεται αναβάθμιση του shelldio"
377377
if git pull --rebase --stat origin stable; then
378378
printf "${BLUE}%s${RESET}\n" "Ολοκληρώθηκε η αναβάθμιση του shelldio."
379-
return
379+
exit 0
380380
else
381381
printf "${RED}%s${RESET}\n" 'Κάποιο πρόβλημα παρουσιάστηκε κατά την αναβάθμιση. Δοκίμασε ξανά αργότερα'
382+
exit 1
382383
fi
383-
exit
384384
;;
385-
[Nn]*) exit ;;
385+
[Nn]*) exit 0 ;;
386386
*) echo "Παρακαλώ απαντήστε με y (ναι) ή n (όχι)" ;;
387387
esac
388388
}

0 commit comments

Comments
 (0)