I have a shell script to convert WordPress Plugin readme files between .txt format and .md. It works perfectly fine in Mac terminal.
When I tried to run the shell script in Ubuntu, the following line
PLUGINMETA=("Contributors" "Donate link" "Donate Link" "Tags" "Requires at least" "Tested up to" "Stable tag" "License" "License URI")
throws the following syntax error.
Syntax error: "(" unexpected (expecting "}")
That particular line is just declaring a list of string variables. I am not sure why it is generating a syntax error. Can someone kindly tell me which there is an error?
Edit:
The full source code of the file is available at https://github.com/sudar/wp-plugin-in-github/blob/master/readme-convertor.sh
I have picked up the relevant line and added above. Not sure if I have to include more lines.