Confirmation of update loops forever #5

Open
opened 2025-11-25 20:02:18 -06:00 by ninjasurge · 1 comment
Owner

When you respond y to the update prompt it will update the script but then it will continue to loop the same question until you respond with n.

Example output

v0.0.4 => v0.0.5
There is an update avalible would you like to update? (y/N) y
Proceeding...
Script downloaded
.ninjasurge.sh: OK
.ninjasurge is up to date
Script sourced
There is an update avalible would you like to update? (y/N) y
Proceeding...
Script downloaded
.ninjasurge.sh: OK
.ninjasurge is up to date
Script sourced
There is an update avalible would you like to update? (y/N)
Invalid response. Please enter y or n.
There is an update avalible would you like to update? (y/N) n
Exiting...
.ninjasurge.sh:88: parse error near `fi'
When you respond `y` to the update prompt it will update the script but then it will continue to loop the same question until you respond with `n`. ### Example output ```bash v0.0.4 => v0.0.5 There is an update avalible would you like to update? (y/N) y Proceeding... Script downloaded .ninjasurge.sh: OK .ninjasurge is up to date Script sourced There is an update avalible would you like to update? (y/N) y Proceeding... Script downloaded .ninjasurge.sh: OK .ninjasurge is up to date Script sourced There is an update avalible would you like to update? (y/N) Invalid response. Please enter y or n. There is an update avalible would you like to update? (y/N) n Exiting... .ninjasurge.sh:88: parse error near `fi' ```
Author
Owner

There is no line 88 😠😠.
Unless the ; on line 86 are interpreted as new lines... 🤔

There is no line 88 😠😠. Unless the `;` on [line 86](https://gitea.computersurge.dev/ninjasurge/ninjasurge.sh/src/commit/88577b287a66577361cb621fd58dc6c0970aac55/.ninjasurge.sh#L86) are interpreted as new lines... 🤔
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ninjasurge/ninjasurge.sh#5