diff --git a/yoink-or-update-emojipack.sh b/yoink-or-update-emojipack.sh index c5a0ff9..ab3326d 100755 --- a/yoink-or-update-emojipack.sh +++ b/yoink-or-update-emojipack.sh @@ -56,7 +56,7 @@ cat "$cached_list" \ fi done -if [ "$meta_prefix" = "{" ] ; then +if [ "$(wc -l "$META_ADD" | cut -d ' ' -f 1)" = "0" ] ; then echo "No emoji matched search criteria" rm "$META_ADD" exit 0