Add update success message only if ghost was actually updated

This commit is contained in:
fabrice1236 2025-01-09 18:43:18 +01:00
parent eecde60373
commit bad191c4cf

View File

@ -37,6 +37,7 @@ function update_script() {
if [ "$current_version" != "$latest_version" ]; then if [ "$current_version" != "$latest_version" ]; then
msg_info "Updating ${APP} from version $current_version to $latest_version" msg_info "Updating ${APP} from version $current_version to $latest_version"
npm install -g ghost-cli@latest &> /dev/null npm install -g ghost-cli@latest &> /dev/null
msg_ok "Updated Successfully"
else else
msg_ok "${APP} is already up-to-date (version $current_version)" msg_ok "${APP} is already up-to-date (version $current_version)"
fi fi
@ -44,7 +45,6 @@ function update_script() {
msg_error "No ${APP} Installation Found!" msg_error "No ${APP} Installation Found!"
exit exit
fi fi
msg_ok "Updated Successfully"
exit exit
} }