diff options
author | Marvin Borner | 2020-07-18 17:44:30 +0200 |
---|---|---|
committer | Marvin Borner | 2020-07-18 17:44:30 +0200 |
commit | ecbb3c7420ebb63d9a870760df602b27cef82939 (patch) | |
tree | eccc328286f2ad0935757c3556e3b7d79815b70f /run | |
parent | 34a3f2f132791ad33e6a6b59371bb6f029436ab4 (diff) |
Added debug mode
Diffstat (limited to 'run')
-rwxr-xr-x | run | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -1,4 +1,10 @@ -#!/usr/bin/env sh +#!/usr/bin/env bash -deno test test/ && - deno run -q --allow-net --allow-env --allow-read --unstable src/main.ts +ARGS=(--allow-net --allow-env --allow-read --unstable) + +if grep -q "DEBUG=1" .env; then + deno test "${ARGS[@]}" test/ && + deno run "${ARGS[@]}" src/main.ts +else + deno run "${ARGS[@]}" src/main.ts +fi |