OSDN Git Service

fix notifications
[instantos/instantOS.git] / programs / dunsttrigger
index 1de5a2a..71123ed 100755 (executable)
@@ -11,8 +11,9 @@ if ! echo "$1" | grep -Eiq '(discord|spotify)'; then
         if ping -c 1 google.com; then
             mkdir -p ~/instantos/notifications/
             wget -qO ~/instantos/notifications/notification.ogg "https://notificationsounds.com/notification-sounds/me-too-603/download/ogg"
+        else
+            exit
         fi
-        exit
     fi
     mpv ~/instantos/notifications/notification.ogg
 fi