[Github-comments] [geany/plugins.geany.org] ./gencontent.sh: line 305: [: -eq: unary operator expected (#6)

Enrico Tröger notifications at xxxxx
Sun May 12 12:21:33 UTC 2019


The lines just moved: the old line 305 is now at 308 (see the original at https://github.com/geany/plugins.geany.org/blob/f11c354f1302ab440793cafa3bd23a96de441b9b/gencontent.sh).

The problem probably still exists under certain circumstances:
```shell
enrico at endor:~$ [  -eq 0 ]
bash: [: -eq: unary operator expected
```

That is, `${header_added[${plugin}]}` seems to be empty in @dmaphy's case, for whatever reasons.
If I understand the code correctly, `$header_added` is filled from `$RELEASE_PLUGIN_LIST` but the access to $header_added happens from the list in `$CONTENTDIR}${tag}`.
I guess one needs to debug the contents of these lists and to determine whether the above can happen again or not.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/plugins.geany.org/issues/6#issuecomment-491590913
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20190512/b3ba0743/attachment-0001.html>


More information about the Github-comments mailing list