Hi Eddie, thanks for reporting.

This is a common issue with "xargs".  When xargs doesn't receive any
input through the pipe (i.e. if "find" doesn't find anything), it
isn't smart enough to exit-early and still tries to run the "chmod"
command without a filename.  The "-r" flag is present in most versions
of xargs to prevent this behavior.  I'll create a JIRA to suggest this
change.  (For context:
https://stackoverflow.com/questions/36617999/error-rm-missing-operand-when-using-along-with-find-command)


Also concerning though is that "find" isn't outputting any files in
the first place.  I'll also take a look at that.  Can you provide any
information on what environment you're seeing this on (OS, version,
Solr version, etc.)?

On Wed, Aug 16, 2017 at 11:55 PM, Eddie Trejo
<eddie.tr...@intelligencebank.com> wrote:
> Hi There
>
> Not sure if this is the right channel to report a possible bug, but I think 
> there is a syntax error on lines 280 - 281
>
>   find "$SOLR_INSTALL_DIR" -type d -print0 | xargs -0 chmod 0755
>   find "$SOLR_INSTALL_DIR" -type f -print0 | xargs -0 chmod 0644
>
> The below is printed on screen during the execution of the script:
>
> chmod: missing operand after ‘0750’
> Try 'chmod --help' for more information.
> chmod: missing operand after ‘0640’
> Try 'chmod --help' for more information.
>
> Downloaded source code from here 
> http://www.apache.org/dyn/closer.lua/lucene/solr/6.6.0 
> <http://www.apache.org/dyn/closer.lua/lucene/solr/6.6.0>
>
> Thanks
>
> -------------------------------------------------------
> Eddie Trejo - Infrastructure and DevOps Manager
>
> AUS:  +61 3 8618 7800
> -------------------------------------------------------
>

Reply via email to