kirby zhou created RANGER-4021:
----------------------------------

             Summary: Shell syntax bug in kms setup.sh
                 Key: RANGER-4021
                 URL: https://issues.apache.org/jira/browse/RANGER-4021
             Project: Ranger
          Issue Type: Bug
          Components: kms
    Affects Versions: 2.3.0, 3.0.0, 2.4.0
            Reporter: kirby zhou


 
{code:java}
if [[ ${useringrouparr[1]} =~ "(${unix_group})" ]] 
{code}
Don't quote right-hand side of =~, it'll match literally rather than as a regex.

 

 
{code:java}
echo "${prefix} $@" >> $LOGFILE
echo "${prefix} $@" 
{code}
Argument mixes string and array. Use * or separate argument.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to