diff options
Diffstat (limited to 'test/apps/bun-dev.sh')
-rw-r--r-- | test/apps/bun-dev.sh | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/apps/bun-dev.sh b/test/apps/bun-dev.sh index 77fb75be8..be1902965 100644 --- a/test/apps/bun-dev.sh +++ b/test/apps/bun-dev.sh @@ -2,23 +2,23 @@ set -euo pipefail -killall -9 "$(basename "$BUN_BIN")" || echo "" +killall -9 $(basename $BUN_BIN) || echo "" -DIR=$(mktemp -d -t bun-dev-check) +dir=$(mktemp -d --suffix=bun-dev-check) index_content="<html><body>index.html</body></html>" bacon_content="<html><body>bacon.html</body></html>" js_content="console.log('hi')" -mkdir -p "$DIR/public" +mkdir -p $dir/public -echo $index_content >"$DIR/public/index.html" -echo $js_content >"$DIR/index.js" -echo $bacon_content >"$DIR/public/bacon.html" +echo $index_content >"$dir/public/index.html" +echo $js_content >"$dir/index.js" +echo $bacon_content >"$dir/public/bacon.html" -cd "$DIR" +cd $dir -$BUN_BIN dev --port 8087 & +$BUN_BIN --port 8087 & sleep 0.005 if [ "$(curl --fail -sS http://localhost:8087/)" != "$index_content" ]; then |