CA API Developer Portal: Syntax error running Portal.sh
search cancel

CA API Developer Portal: Syntax error running Portal.sh

book

Article ID: 110645

calendar_today

Updated On:

Products

CA API Developer Portal CA API Gateway

Issue/Introduction

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 `<'.

 

Environment

Release:
Component: APIPRD

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