diff --git a/bin/.shellcheck-0.9.0.pkg b/bin/.shellcheck-0.10.0.pkg similarity index 100% rename from bin/.shellcheck-0.9.0.pkg rename to bin/.shellcheck-0.10.0.pkg diff --git a/bin/shellcheck b/bin/shellcheck index 17e3eea..a67dcb9 120000 --- a/bin/shellcheck +++ b/bin/shellcheck @@ -1 +1 @@ -.shellcheck-0.9.0.pkg \ No newline at end of file +.shellcheck-0.10.0.pkg \ No newline at end of file diff --git a/dev b/dev index f8d5400..d98d02b 100755 --- a/dev +++ b/dev @@ -1,6 +1,7 @@ -#!/bin/bash -euo pipefail +#!/bin/bash +set -euo pipefail -cd "$(dirname ${BASH_SOURCE})" +cd "$(dirname "${BASH_SOURCE[@]}")" if [ $# -eq 0 ]; then trap 'trap " " SIGTERM; kill 0; wait' SIGINT SIGTERM @@ -12,8 +13,8 @@ fi case "$1" in go) - exec env $(cat .env | xargs) go run github.com/cespare/reflex \ - -d none -s -- go run ./cmd/veun serve + # shellcheck disable=SC2046,SC2002 + exec env $(cat .env | xargs) go run github.com/cespare/reflex -d none -s -- go run ./cmd/veun serve ;; tailwind) exec bun run tailwindcss -i static/input.css -o static/styles.dev.css -w diff --git a/prod b/prod index b747660..c907700 100755 --- a/prod +++ b/prod @@ -1,4 +1,7 @@ -#!/bin/bash -euo pipefail +#!/bin/bash +set -euo pipefail bun run tailwindcss -i cmd/veun/static/input.css -o cmd/veun/static/styles.css --minify + +# shellcheck disable=SC2046,SC2002 exec env $(cat .env | xargs) go run ./cmd/veun serve --environment=prod