Commit Diff


commit - 2959f41846dadc2d7826083bfc86d41a49b37420
commit + b2c9f618aa4d760f0edfc7dbf6bcd01ca38aca17
blob - ab925cfe60de9d9648954018faf2e3e9777a2709
blob + fa88b8e9da3292f78931b60f217cfd5ede722f86
--- regress/cmdline/common.sh
+++ regress/cmdline/common.sh
@@ -27,10 +27,7 @@ export GOT_LOG_DEFAULT_LIMIT=0
 export GOT_TEST_ROOT="/tmp"
 export GOT_IGNORE_GITCONFIG=1
 export GOT_VERSION_STR=`got --version | cut -d ' ' -f2`
-
-if [ -z "$GOT_TEST_HTTP_PORT" ]; then
-	export GOT_TEST_HTTP_PORT=8080
-fi
+export GOT_TEST_HTTP_PORT=${GOT_TEST_HTTP_PORT:-8080}
 
 export LC_ALL=C