Fix shell helpers

- Use alternative function format to make shellcheck happy
- specify bash as an interpreter
This commit is contained in:
Claudio Ortolina
2025-10-08 00:43:37 +03:00
parent df1631142a
commit 71cfb2e0e7
+3 -1
View File
@@ -1,4 +1,6 @@
ensure_working_directory!() { #!/usr/bin/env bash
function ensure_working_directory! {
root_dir="$(git rev-parse --show-toplevel)" root_dir="$(git rev-parse --show-toplevel)"
if [[ "$PWD" != "$root_dir" ]]; then if [[ "$PWD" != "$root_dir" ]]; then