I was able to make the shell script run on a current (High Sierra) OSX system by making one change to the shell script, as it seems that OSX bash does not support the ^^ operator. I changed this line:
if [ -f "$FILE" ] && [ ${EXT^^} == "DOCX" ] ; then
to this:
shopt -s nocasematch
if [ -f "$FILE" ] && [[ ${EXT} == "DOCX" ]] ; then
I did have to install the 'realpath' package from MacPorts, but with that package installed and the above change I was able to run the tagwipe command directly from the untar directory.
Shell script hack for OSX
Hello,
Thanks for making the script set available.
I was able to make the shell script run on a current (High Sierra) OSX system by making one change to the shell script, as it seems that OSX bash does not support the ^^ operator. I changed this line:
if [ -f "$FILE" ] && [ ${EXT^^} == "DOCX" ] ; then
to this:
shopt -s nocasematch
if [ -f "$FILE" ] && [[ ${EXT} == "DOCX" ]] ; then
I did have to install the 'realpath' package from MacPorts, but with that package installed and the above change I was able to run the tagwipe command directly from the untar directory.