Files
2025-10-09 08:49:26 +02:00

15 lines
270 B
Bash

#!/usr/bin/env bash
function 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
}
function debug_msg {
echo "==> $1"
}