Skip to content

Commit 8b9f47b

Browse files
authored
Update libreoffice
1 parent fe1c78d commit 8b9f47b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

programs/x86_64/libreoffice

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ version=$(wget -q https://appimages.libreitalia.org/ -O - | tr '"' '\n' | grep -
141141
if 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!"
156157
else
157158
echo "Update not needed!"
158159
fi

0 commit comments

Comments
 (0)