Ensure working directory in scripts

So that they can be run standalone and not just through Mise
This commit is contained in:
Claudio Ortolina
2025-10-07 10:30:38 +03:00
parent 9ab687e306
commit c513c43a52
11 changed files with 48 additions and 0 deletions
+4
View File
@@ -4,4 +4,8 @@
set -e
source "$(dirname "$0")/../_helpers.sh"
ensure_working_directory!
iex -S mix phx.server
+4
View File
@@ -4,6 +4,10 @@
set -e
source "$(dirname "$0")/../_helpers.sh"
ensure_working_directory!
git co --theirs priv/gettext/default.pot
git co --theirs priv/gettext/en/LC_MESSAGES/default.po
+4
View File
@@ -4,4 +4,8 @@
set -e
source "$(dirname "$0")/../_helpers.sh"
ensure_working_directory!
mix lint
+4
View File
@@ -4,6 +4,10 @@
set -e
source "$(dirname "$0")/../_helpers.sh"
ensure_working_directory!
npm outdated --prefix assets
mix do tailwind.check_version, esbuild.check_version, sqlean.check_version
+4
View File
@@ -4,4 +4,8 @@
set -e
source "$(dirname "$0")/../_helpers.sh"
ensure_working_directory!
mix precommit
+4
View File
@@ -4,6 +4,10 @@
set -e
source "$(dirname "$0")/../_helpers.sh"
ensure_working_directory!
# Add the Fluxon UI hex source repo
mix hex.repo add fluxon https://repo.fluxonui.com \
+4
View File
@@ -4,6 +4,10 @@
set -e
source "$(dirname "$0")/../_helpers.sh"
ensure_working_directory!
npm update --prefix assets
mix do tailwind.update_version, esbuild.update_version, sqlean.update_version