File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,8 @@ version=$(wget -q https://appimages.libreitalia.org/ -O - | tr '"' '\n' | grep -
141141if command -v appimageupdatetool >/dev/null 2>&1; then
142142 cd "/opt/$APP" || exit 1
143143 appimageupdatetool -Or ./"$APP" && chmod a+x ./"$APP" && echo "$version" > ./version && exit 0
144- elif [ "$version" != "$version0" ] || [ -e /opt/"$APP"/*.zsync ]; then
144+ fi
145+ if [ "$version" != "$version0" ] || [ -e /opt/"$APP"/*.zsync ]; then
145146 mkdir "/opt/$APP/tmp" && cd "/opt/$APP/tmp" || exit 1
146147 [ -e /opt/"$APP"/*.zsync ] || notify-send "A new version of $APP is available, please wait"
147148 [ -e /opt/"$APP"/*.zsync ] && wget "https://appimages.libreitalia.org/$version.zsync" 2>/dev/null || { wget "https://appimages.libreitalia.org/$version" || exit 1; }
@@ -152,7 +153,7 @@ elif [ "$version" != "$version0" ] || [ -e /opt/"$APP"/*.zsync ]; then
152153 chmod a+x "/opt/$APP/$APP" || exit 1
153154 echo "$version" > ./version
154155 rm -R -f ./*zs-old ./*.part ./tmp ./*~
155- notify-send "$APP is updated!"
156+ [ "$version" != "$version0" ] && notify-send "$APP is updated!"
156157else
157158 echo "Update not needed!"
158159fi
You can’t perform that action at this time.
0 commit comments