Skip to content

Commit 80cfc3b

Browse files
authored
Update trilium.sh
1 parent d159e47 commit 80cfc3b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ct/trilium.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,9 @@ function update_script() {
2727
msg_error "No ${APP} Installation Found!"
2828
exit
2929
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
30+
if [[ ! -f /opt/${APP}_version.txt ]]; then touch /opt/${APP}_version.txt fi
3331
RELEASE=$(curl -s https://api.github.com/repos/TriliumNext/Notes/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
32+
if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP}_version.txt ]]; then
3433
msg_info "Stopping ${APP}"
3534
systemctl stop trilium
3635
sleep 1

0 commit comments

Comments
 (0)