mirror of
https://github.com/AuxXxilium/arc-addons.git
synced 2024-11-23 21:50:52 +07:00
updatenotify: update
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
dcf39e1daf
commit
8fc059e10e
@ -46,21 +46,21 @@ function Check() {
|
|||||||
fi
|
fi
|
||||||
[ "${TAG:0:1}" = "v" ] && TAG="${TAG:1}"
|
[ "${TAG:0:1}" = "v" ] && TAG="${TAG:1}"
|
||||||
if [ -z "${TAG}" -o "${TAG}" = "latest" ]; then
|
if [ -z "${TAG}" -o "${TAG}" = "latest" ]; then
|
||||||
echo "Error checking new version. TAG is ${TAG}"
|
echo "Error checking new version - Your version is ${LOCALTAG}"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
if [ "${TAG}" = "${LOCALTAG}" ]; then
|
if [ "${TAG}" = "${LOCALTAG}" ]; then
|
||||||
echo "Actual version is ${TAG}"
|
echo "Actual version is ${TAG} - Your version is ${LOCALTAG}"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# NOTIFICATION="Arc Notify"
|
# NOTIFICATION="Arc Notify"
|
||||||
# synodsmnotify -e false -b false "@administrators" "arc_notify" "{\"%NOTIFICATION%\": \"${NOTIFICATION}\"}"
|
# synodsmnotify -e false -b false "@administrators" "arc_notify" "{\"%NOTIFICATION%\": \"${NOTIFICATION}\"}"
|
||||||
# NOTIFICATION="ARc Update"
|
# NOTIFICATION="Arc Update"
|
||||||
# SUBJECT="Arc <a href=\\\"${URL}/releases/tag/${TAG}\\\" target=blank>${TAG}</a> version has been released!"
|
# SUBJECT="Arc <a href=\\\"${URL}/releases/tag/${TAG}\\\" target=blank>${TAG}</a> version has been released!"
|
||||||
# synodsmnotify -e false -b false "@administrators" "arc_notify_subject" "{\"%NOTIFICATION%\": \"${NOTIFICATION}\", \"%SUBJECT%\": \"${SUBJECT}\"}"
|
# synodsmnotify -e false -b false "@administrators" "arc_notify_subject" "{\"%NOTIFICATION%\": \"${NOTIFICATION}\", \"%SUBJECT%\": \"${SUBJECT}\"}"
|
||||||
|
|
||||||
NOTIFICATION="Arc Relase ${TAG}"
|
NOTIFICATION="Arc Release ${TAG}"
|
||||||
SUBJECT="$(curl -skL --connect-timeout 10 "${URL}/releases/tag/${TAG}" | pup 'div[data-test-selector="body-content"]')"
|
SUBJECT="$(curl -skL --connect-timeout 10 "${URL}/releases/tag/${TAG}" | pup 'div[data-test-selector="body-content"]')"
|
||||||
SUBJECT="${SUBJECT//\"/\\\\\\\"}"
|
SUBJECT="${SUBJECT//\"/\\\\\\\"}"
|
||||||
synodsmnotify -e false -b false "@administrators" "arc_notify_subject" "{\"%NOTIFICATION%\": \"${NOTIFICATION}\", \"%SUBJECT%\": \"${SUBJECT}\"}"
|
synodsmnotify -e false -b false "@administrators" "arc_notify_subject" "{\"%NOTIFICATION%\": \"${NOTIFICATION}\", \"%SUBJECT%\": \"${SUBJECT}\"}"
|
||||||
|
Loading…
Reference in New Issue
Block a user