exit if no data
This commit is contained in:
parent
8d2e5313b5
commit
4f61cd353c
1 changed files with 5 additions and 0 deletions
5
webhook
5
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')"
|
||||
|
|
Loading…
Add table
Reference in a new issue