If the user does not enter anything, then it $PORTis replaced with nothing - an ancient convention for creating this work with the original Bourne shell:
if [ "x$PORT" == "x" ]; then
Although more modern shells (i.e. actual bash, but not Solaris 10 / bin / sh, which are the ancient Bourne shell) should be able to deal with:
if [[ "$PORT" == "" ]]; then
or even
if [[ -z "$PORT" ]]; then
source
share