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 @@ -37,11 +37,12 @@ version=$(FUNCTION)
3737[ -n "$version" ] || { echo "Error getting link"; exit 1; }
3838if [ "$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 ./*~
You can’t perform that action at this time.
0 commit comments