Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
Error displayed when update process fails.
  • Loading branch information
QROkes committed Sep 5, 2022
1 parent c7906ff commit feb642d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/webin
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,8 @@ webinoly_update() {
if [[ $? == 0 ]]; then
echo "${gre}Webinoly App has been updated successfully!${dim} (Updated to: v$(conf_read app-version))${end}"
else
sudo rm weby
# Check if exist, because it can be deleted before if an error is triggered in the installer, for instance.
[[ -f weby ]] && sudo rm weby
echo "${red}[ERROR] Update process has failed!${end}"
exit 1
fi
Expand Down

0 comments on commit feb642d

Please sign in to comment.