diff --git a/scripts/clean.sh b/scripts/clean.sh new file mode 100644 index 0000000..aee88eb --- /dev/null +++ b/scripts/clean.sh @@ -0,0 +1,6 @@ +set -e + +builddir="${1:-./build}" + +echo "[info] cleaning build dir: \"$builddir\"" +rm -r "$builddir" diff --git a/scripts/start.sh b/scripts/start.sh index a2df4c0..4e0366f 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -20,9 +20,10 @@ function start() { exec "$file" } -if [[ -f "$file" ]]; then +if [[ -f $file ]]; then start else - pnpm build - start + echo "[error] can't start project: no executable found on default directory" + echo "[tip] specify the executable path: start \"\$path\"" + exit 1 fi