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 be25526 commit ddd8e0eCopy full SHA for ddd8e0e
ct/pocketid.sh
@@ -30,7 +30,8 @@ function update_script() {
30
fi
31
32
if check_for_gh_release "pocket-id" "pocket-id/pocket-id"; then
33
- if [[ "$(cat ~/.pocket-id)" < "1.0.0" ]]; then
+ if [ "$(printf '%s\n%s' "$(cat ~/.pocket-id 2>/dev/null || echo 0.0.0)" "1.0.0" | sort -V | head -n1)" = "$(cat ~/.pocket-id 2>/dev/null || echo 0.0.0)" ] \
34
+ && [ "$(cat ~/.pocket-id 2>/dev/null || echo 0.0.0)" != "1.0.0" ]; then
35
msg_info "Migrating ${APP}"
36
systemctl -q disable --now pocketid-backend pocketid-frontend caddy
37
mv /etc/caddy/Caddyfile ~/Caddyfile.bak
0 commit comments