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,6 +4,10 @@
set -e
source "$(dirname "$0")/../_helpers.sh"
ensure_working_directory!
current_date=$(date +%s)
project_dir=$(git rev-parse --show-toplevel)
data_dir="$project_dir/data"