diff --git a/run.sh b/run.sh index 0d1542f..4de0cfe 100755 --- a/run.sh +++ b/run.sh @@ -41,6 +41,10 @@ while getopts ':p:h' opt; do esac done +if [[ -z $ports ]]; then + ports=8080 +fi + ## Build Environment ## # Ensure we are executing from this file's directory. @@ -87,9 +91,6 @@ find files/photos/ -name "*".html -print -delete count=1 http_code=0 port="${ports%% *}" - if [[ -z $port ]]; then - port="8080" - fi photos_uri=":$port/photos/" while [[ $http_code != "200" ]]; do log "Sleeping for '$count' while waiting for $photos_uri to come up."