Skip to content

Commit a4e04e5

Browse files
authored
Merge pull request #649 from ivan-hc/dev
Fix new AppImage template
2 parents bf06515 + 75c8e2f commit a4e04e5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

templates/AM-SAMPLE-AppImage

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,12 @@ version=$(FUNCTION)
3737
[ -n "$version" ] || { echo "Error getting link"; exit 1; }
3838
if [ "$version" != "$version0" ] || [ -e /opt/"$APP"/*.zsync ]; then
3939
mkdir "/opt/$APP/tmp" && cd "/opt/$APP/tmp" || exit 1
40-
wget "$version.zsync" 2>/dev/null || { wget "$version" || exit 1; }
40+
[ -e /opt/"$APP"/*.zsync ] || notify-send "A new version of $APP is available, please wait"
41+
[ -e /opt/"$APP"/*.zsync ] && wget "$version.zsync" 2>/dev/null || { wget "$version" || exit 1; }
4142
# Use tar fx ./*tar* here for example in this line in case a compressed file is downloaded.
4243
cd ..
4344
mv ./tmp/*.zsync ./"$APP".zsync 2>/dev/null || mv --backup=t ./tmp/*mage ./"$APP"
44-
[ -e /opt/"$APP"/*.zsync] && { zsync "/opt/$APP/$APP.zsync" || notify-send -u critical "zsync failed to update $APP"; }
45+
[ -e /opt/"$APP"/*.zsync ] && { zsync "/opt/$APP/$APP.zsync" || notify-send -u critical "zsync failed to update $APP"; }
4546
chmod a+x "/opt/$APP/$APP" || exit 1
4647
echo "$version" > ./version
4748
rm -R -f ./*zs-old ./*.part ./tmp ./*~

0 commit comments

Comments
 (0)