aboutsummaryrefslogtreecommitdiff
path: root/scripts/meta
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/meta')
-rwxr-xr-xscripts/meta10
1 files changed, 7 insertions, 3 deletions
diff --git a/scripts/meta b/scripts/meta
index f33ea3d..e869d0b 100755
--- a/scripts/meta
+++ b/scripts/meta
@@ -11,8 +11,12 @@ if [[ $tag_name = "tags" ]]; then
sed -z '$ s/\n$//' |\
jq --raw-input --slurp 'split("\n")'
else
- echo $output |\
- sed -z '$ s/\n$//' |\
- jq --raw-input
+ if [[ $output = "" ]]; then
+ echo "" | jq --raw-input
+ else
+ echo $output |\
+ sed -z '$ s/\n$//' |\
+ jq --raw-input
+ fi
fi