Commit Diff


commit - f56b35c7424f6ed0d598c12e78d16d5ed81d39d8
commit + a6cc387fec23bd4635f8b81cc025832da261d1ef
blob - 8eb60e08d60656dc79accc84a064e8db41bf6df3
blob + 4464e51932ac80bc900e1b380f3ea56506563a7c
--- 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