Skip to content

Commit 8474a72

Browse files
committed
fix syntax error
1 parent 4c5d422 commit 8474a72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ct/komga.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ function default_settings() {
5454

5555
function update_script() {
5656
header_info
57-
if [[ ! -d /opt/Stirling-PDF ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
57+
if [[ ! -d /opt/komga ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
5858
msg_info "Updating ${APP}"
5959
RELEASE=$(curl -s https://api.github.com/repos/gotson/komga/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
60-
if [[ ! -d /opt/komga/komga-${RELEASE} ]].jar; then
60+
if [[ ! -d /opt/komga/komga-${RELEASE}.jar ]]; then
6161
systemctl stop komga
6262
msg_info "Downloading ${APP} v$RELEASE"
6363
wget -q "https://github.com/gotson/komga/releases/download/v$RELEASE/komga-${RELEASE}.jar"

0 commit comments

Comments
 (0)