Standardize update success messages in scripts (#8757)

This commit is contained in:
CanbiZ
2025-10-30 09:24:16 -07:00
committed by GitHub
parent e900367b51
commit be7d0704d7
357 changed files with 1296 additions and 1217 deletions
+2 -2
View File
@@ -24,7 +24,7 @@ function update_script() {
header_info
if [ ! -d /opt/rclone ]; then
msg_error "No ${APP} Installation Found!"
exit 1
exit
fi
RELEASE=$(curl -s https://api.github.com/repos/rclone/rclone/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
if [ "${RELEASE}" != "$(cat /opt/rclone_version.txt)" ] || [ ! -f /opt/rclone_version.txt ]; then
@@ -34,7 +34,7 @@ function update_script() {
$STD unzip -o "$temp_file" '*/**' -d /opt/rclone
rm -f "$temp_file"
echo "${RELEASE}" >/opt/rclone_version.txt
msg_ok "Updated Successfully"
msg_ok "Updated successfully!"
else
msg_ok "No update required. ${APP} is already at ${RELEASE}"
fi