From 82abadcecc7534b4847238ee2a977f33256b0439 Mon Sep 17 00:00:00 2001 From: George Abbott Date: Sun, 26 Jan 2025 11:37:22 +0000 Subject: sh --- scripts/sh/local-srv | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 scripts/sh/local-srv (limited to 'scripts/sh/local-srv') diff --git a/scripts/sh/local-srv b/scripts/sh/local-srv new file mode 100755 index 0000000..5eaefa7 --- /dev/null +++ b/scripts/sh/local-srv @@ -0,0 +1,6 @@ +#!/bin/sh +# Spin up a server at the passed in directory. + +[ -z "$2" ] && port=1102 || port="$2" + +python3 -m http.server "$port" -d $1 -- cgit v1.2.1