File tree Expand file tree Collapse file tree 1 file changed +15
-14
lines changed
Expand file tree Collapse file tree 1 file changed +15
-14
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments