diff options
-rwxr-xr-x | bin/serve | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -15,7 +15,7 @@ help() { Options: -d DIRECTORY the directory to serve (default: ".") - -p PORT the port to listen on (default: 8000) + -p PORT the port to listen on (default: find one) -h, --help show this message @@ -53,7 +53,7 @@ for flag in "$@"; do done DIRECTORY='.' -PORT=8000 +PORT="$(free-port)" while getopts 'd:p:h' flag; do case "$flag" in d) |