diff options
| author | Joe Carstairs <me@joeac.net> | 2026-06-02 18:00:14 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-06-02 18:00:14 +0100 |
| commit | 6bc4552d41f53f370f0e97726e96bf2d376b470d (patch) | |
| tree | 6fd8dcc25435b218fc8e28aa6a628d19986c15b6 /http/bin/mkws | |
| parent | 86f40be2cb74fc9179a0324a327465367388179e (diff) | |
mkws copies from public if it exists
Diffstat (limited to 'http/bin/mkws')
| -rw-r--r--[-rwxr-xr-x] | http/bin/mkws | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/http/bin/mkws b/http/bin/mkws index fd0e726..d706905 100755..100644 --- 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 |
