We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d159e47 commit 80cfc3bCopy full SHA for 80cfc3b
ct/trilium.sh
@@ -27,10 +27,9 @@ function update_script() {
27
msg_error "No ${APP} Installation Found!"
28
exit
29
fi
30
- if [[ ! -f /opt/${APP}_version.txt ]]; then touch /opt/${APP}_version.txt
31
- fi
32
- if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP}_version.txt ]]; then
+ if [[ ! -f /opt/${APP}_version.txt ]]; then touch /opt/${APP}_version.txt fi
33
RELEASE=$(curl -s https://api.github.com/repos/TriliumNext/Notes/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
+ if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP}_version.txt ]]; then
34
msg_info "Stopping ${APP}"
35
systemctl stop trilium
36
sleep 1
0 commit comments