c513c43a52
So that they can be run standalone and not just through Mise
9 lines
202 B
Bash
9 lines
202 B
Bash
ensure_working_directory!() {
|
|
root_dir="$(git rev-parse --show-toplevel)"
|
|
|
|
if [[ "$PWD" != "$root_dir" ]]; then
|
|
echo "Please run the script from the root of the repo: $root_dir"
|
|
exit
|
|
fi
|
|
}
|