Skip to content

Commit 319956a

Browse files
committed
w/ shellcheck dev & prod
1 parent 3ff27a9 commit 319956a

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed
File renamed without changes.

bin/shellcheck

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
.shellcheck-0.9.0.pkg
1+
.shellcheck-0.10.0.pkg

dev

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
#!/bin/bash -euo pipefail
1+
#!/bin/bash
2+
set -euo pipefail
23

3-
cd "$(dirname ${BASH_SOURCE})"
4+
cd "$(dirname "${BASH_SOURCE[@]}")"
45

56
if [ $# -eq 0 ]; then
67
trap 'trap " " SIGTERM; kill 0; wait' SIGINT SIGTERM
@@ -12,8 +13,8 @@ fi
1213

1314
case "$1" in
1415
go)
15-
exec env $(cat .env | xargs) go run github.com/cespare/reflex \
16-
-d none -s -- go run ./cmd/veun serve
16+
# shellcheck disable=SC2046,SC2002
17+
exec env $(cat .env | xargs) go run github.com/cespare/reflex -d none -s -- go run ./cmd/veun serve
1718
;;
1819
tailwind)
1920
exec bun run tailwindcss -i static/input.css -o static/styles.dev.css -w

prod

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
#!/bin/bash -euo pipefail
1+
#!/bin/bash
2+
set -euo pipefail
23

34
bun run tailwindcss -i cmd/veun/static/input.css -o cmd/veun/static/styles.css --minify
5+
6+
# shellcheck disable=SC2046,SC2002
47
exec env $(cat .env | xargs) go run ./cmd/veun serve --environment=prod

0 commit comments

Comments
 (0)