[
https://issues.apache.org/jira/browse/NIFI-758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14694580#comment-14694580
]
Matt Gilman commented on NIFI-758:
----------------------------------
Running in DASH on OSX without the patch yields the following:
{code}
gilman$ dash bin/nifi.sh run
bin/nifi.sh: 166: bin/nifi.sh: [[: not found
...
{code}
With the patch applied the issue is resolved.
+1
> Update nifi.sh to use POSIX compliant syntax
> --------------------------------------------
>
> Key: NIFI-758
> URL: https://issues.apache.org/jira/browse/NIFI-758
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Affects Versions: 0.2.0, 0.2.1
> Reporter: Aldrin Piri
> Assignee: Aldrin Piri
> Priority: Minor
> Fix For: 0.3.0
>
> Attachments:
> 0001-NIFI-758-Defaulting-to-POSIX-compliant-single-bracke.patch
>
>
> In environments where bash or bash-compatible shell is not the default (small
> form factors use dash), the [[ test syntax is not valid and will cause those
> parts of the script to be ignored due to an error when being evaluated.
> This is preferable to forcing bash execution via the shebang line for the
> sake of maximizing portability.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)