Skip to content

Commit 9d69c0a

Browse files
committed
testing new updater
1 parent 65a7c6e commit 9d69c0a

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

shelldio.sh

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -370,21 +370,22 @@ self_update() {
370370
return
371371
fi
372372

373-
read -rp "Θέλεις να γίνει αναβάθμιση του shelldio; (y/n) : " update_confirm
374-
case $update_confirm in
375-
[Yy]*)
376-
printf "${BLUE}%s${RESET}\n" "Γίνεται αναβάθμιση του shelldio"
377-
if git pull --rebase --stat origin stable; then
378-
printf "${BLUE}%s${RESET}\n" "Ολοκληρώθηκε η αναβάθμιση του shelldio."
373+
while true; do
374+
read -rp "Θέλεις να γίνει αναβάθμιση του shelldio; (y/n) : " update_confirm
375+
case $update_confirm in
376+
[Yy]*)
377+
printf "${BLUE}%s${RESET}\n" "Γίνεται αναβάθμιση του shelldio"
378+
if git pull --rebase --stat origin stable; then
379+
printf "${BLUE}%s${RESET}\n" "Ολοκληρώθηκε η αναβάθμιση του shelldio."
380+
else
381+
printf "${RED}%s${RESET}\n" 'Κάποιο πρόβλημα παρουσιάστηκε κατά την αναβάθμιση. Δοκίμασε ξανά αργότερα'
382+
fi
379383
exit 0
380-
else
381-
printf "${RED}%s${RESET}\n" 'Κάποιο πρόβλημα παρουσιάστηκε κατά την αναβάθμιση. Δοκίμασε ξανά αργότερα'
382-
exit 1
383-
fi
384-
;;
385-
[Nn]*) exit 0 ;;
386-
*) echo "Παρακαλώ απαντήστε με y (ναι) ή n (όχι)" ;;
387-
esac
384+
;;
385+
[Nn]*) exit 0 ;;
386+
*) echo "Παρακαλώ απαντήστε με y (ναι) ή n (όχι)" ;;
387+
esac
388+
done
388389
}
389390

390391
### Λίστα με τις επιλογές σαν 1ο όρισμα shelldio

0 commit comments

Comments
 (0)