From e1247b6d0bbee3efa3297b964e4910e2a17d75b2 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 8 Jan 2024 06:42:12 -0500 Subject: [PATCH] Update stirlingpdf.sh tweak --- ct/stirlingpdf.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ct/stirlingpdf.sh b/ct/stirlingpdf.sh index 4004c8b9..4947e5d0 100644 --- a/ct/stirlingpdf.sh +++ b/ct/stirlingpdf.sh @@ -64,7 +64,7 @@ cp -r scripts /opt/Stirling-PDF/ cd ~ rm -rf Stirling-PDF latest_version=$(ls -1 /opt/Stirling-PDF/Stirling-PDF-*.jar | sort -V | tail -n 1) -ln -s "$latest_version" /opt/Stirling-PDF/Stirling-PDF.jar +ln -sf "$latest_version" /opt/Stirling-PDF/Stirling-PDF.jar new_version=$(echo "$latest_version" | grep -oP '(?<=Stirling-PDF-)\d+(\.\d+)+(?=\.jar)') systemctl start stirlingpdf msg_ok "Updated ${APP} to v$new_version"