From 4f61cd353c247ebaf964dbd3080227c7f1ab6961 Mon Sep 17 00:00:00 2001 From: amolinae06 Date: Sat, 3 May 2025 12:27:55 -0600 Subject: [PATCH] exit if no data --- webhook | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/webhook b/webhook index 08136d8..627c771 100644 --- a/webhook +++ b/webhook @@ -25,6 +25,11 @@ EOF } data="$(latestalbum)" + +if [ -z "$data" ]; then + exit 0 +fi + albumtitle="$(echo "$data" | sed -n '1p')" albumurl="$(echo "$data" | sed -n '2p')" albumcover="$(echo "$data" | sed -n '3p')"