mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-01-10 19:05:09 +00:00
Add update success message only if ghost was actually updated
This commit is contained in:
parent
eecde60373
commit
bad191c4cf
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user