Skip to content

Commit aa63398

Browse files
authored
Update AM-SAMPLE-AppImage
1 parent bf06515 commit aa63398

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/AM-SAMPLE-AppImage

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ 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 ] && wget "$version.zsync" 2>/dev/null || { wget "$version" || exit 1; }
4141
# Use tar fx ./*tar* here for example in this line in case a compressed file is downloaded.
4242
cd ..
4343
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"; }
44+
[ -e /opt/"$APP"/*.zsync ] && { zsync "/opt/$APP/$APP.zsync" || notify-send -u critical "zsync failed to update $APP"; }
4545
chmod a+x "/opt/$APP/$APP" || exit 1
4646
echo "$version" > ./version
4747
rm -R -f ./*zs-old ./*.part ./tmp ./*~

0 commit comments

Comments
 (0)