gitoso opened a new pull request #237: fix(build): fix variable in build script
URL: https://github.com/apache/rocketmq-client-cpp/pull/237
 
 
   ## What is the purpose of the change
   
   The line `unzip -o ${fname_libevent} >unziplibevent.txt 2>&` creates the 
file `unziplibevent.txt` in the directory. So when setting the directory name 
with `libevent_dir=$(ls | grep libevent | grep .*[^zip]$)` the variable will 
have the name of two files and ` cd ${libevent_dir}` will prompt `cd: Too many 
arguments`.
    
   ## Brief changelog
   
   Just adding the .txt extension to the exclusion list during the grep command 
is enough to solve the problem. In the end we have `libevent_dir=$(ls | grep 
libevent | grep .*[^zip^txt]$)`.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to