diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-04-12 13:18:39 +0200 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-04-12 13:18:39 +0200 |
commit | 766cb1ea97d54d40399ae7d1257b1a7504e718fd (patch) | |
tree | 6bde128637cb1aed53e6119576cf1f35a649d067 | |
parent | a4f0671714179bedb80ae81e556f4d5e26690058 (diff) |
bash -> posix sh
-rwxr-xr-x | scripts/meta | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/meta b/scripts/meta index e869d0b..f7a3f84 100755 --- a/scripts/meta +++ b/scripts/meta @@ -5,13 +5,13 @@ filename=$2 output=$(grep -Poh "^\[meta\]:\s+<$tag_name>\s+\(\K(.+)(?=\)$)" $filename) -if [[ $tag_name = "tags" ]]; then +if [ "$tag_name" = "tags" ]; then echo $output |\ sed "s/,\s*/\n/g" |\ sed -z '$ s/\n$//' |\ jq --raw-input --slurp 'split("\n")' else - if [[ $output = "" ]]; then + if [ "$output" = "" ]; then echo "" | jq --raw-input else echo $output |\ |