CA API Developer Portal: Syntax error running Portal.sh

Document ID : KB000110645
Last Modified Date : 10/08/2018
Show Technical Document Details
Issue:
When running the Portal 4.x portal.sh script, you receive an error similar to the below:


portal.sh: line 502: syntax error near unexpected token `<'.

 
Resolution:
This error occurs when trying to execute the script using sh

i.e: 
bash-4.2# sh portal.sh 

This script should instead be run as follows:
bash-4.2# ./portal.sh