From 6bc4552d41f53f370f0e97726e96bf2d376b470d Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Tue, 2 Jun 2026 18:00:14 +0100 Subject: [PATCH] mkws copies from public if it exists --- http/bin/mkws | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) mode change 100755 => 100644 http/bin/mkws diff --git a/http/bin/mkws b/http/bin/mkws old mode 100755 new mode 100644 index fd0e726..d706905 --- a/http/bin/mkws +++ b/http/bin/mkws @@ -9,9 +9,18 @@ usage() { test $# -lt 1 && usage export SRC="$(realpath src)" +export PUBLIC="$(realpath public)" export SHARE="$(realpath share)" export OUT="$(realpath out)" -mkdir -p ${OUT} + +if [ -d "${PUBLIC}" ] +then + echo "Copying from $(basename "${PUBLIC}") into $(basename "${OUT}")" + cp -r "${PUBLIC}" "${OUT}" +else + echo "No $(basename "${PUBLIC}") folder found" + mkdir -p "${OUT}" +fi if ! test -f "${SRC}"/index.upphtml then