Ensure working directory in scripts
So that they can be run standalone and not just through Mise
This commit is contained in:
@@ -4,4 +4,8 @@
|
||||
|
||||
set -e
|
||||
|
||||
source "$(dirname "$0")/../_helpers.sh"
|
||||
|
||||
ensure_working_directory!
|
||||
|
||||
iex -S mix phx.server
|
||||
|
||||
@@ -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,4 +4,8 @@
|
||||
|
||||
set -e
|
||||
|
||||
source "$(dirname "$0")/../_helpers.sh"
|
||||
|
||||
ensure_working_directory!
|
||||
|
||||
mix lint
|
||||
|
||||
@@ -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,4 +4,8 @@
|
||||
|
||||
set -e
|
||||
|
||||
source "$(dirname "$0")/../_helpers.sh"
|
||||
|
||||
ensure_working_directory!
|
||||
|
||||
mix precommit
|
||||
|
||||
@@ -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,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
|
||||
|
||||
Reference in New Issue
Block a user