#!/bin/sh # servelocal.sh # Quick script to host on localhost for testing. # If we have no arguments, or the port argument is not a positive integer (drop failure output). if [ $# -eq 0 ] || ! [ $1 -gt 0 ] 2>/dev/null; then echo "usage: servelocal.sh " else python3 -m http.server $1 fi