Skip to content

Commit 75db950

Browse files
authored
Changed order so that the notification doesn't send if mkdir or cd fail
1 parent a677fb6 commit 75db950

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/AM-SAMPLE-AppImage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ version0=$(cat "/opt/$APP/version")
3636
version=$(FUNCTION)
3737
[ -n "$version" ] || { echo "Error getting link"; exit 1; }
3838
if [ "$version" != "$version0" ] || [ -e /opt/"$APP"/*.zsync ]; then
39-
[ -e /opt/"$APP"/*.zsync ] || notify-send "A new version of $APP is available, please wait"
4039
mkdir "/opt/$APP/tmp" && cd "/opt/$APP/tmp" || exit 1
40+
[ -e /opt/"$APP"/*.zsync ] || notify-send "A new version of $APP is available, please wait"
4141
[ -e /opt/"$APP"/*.zsync ] && wget "$version.zsync" 2>/dev/null || { wget "$version" || exit 1; }
4242
# Use tar fx ./*tar* here for example in this line in case a compressed file is downloaded.
4343
cd ..

0 commit comments

Comments
 (0)