Fix shell helpers
- Use alternative function format to make shellcheck happy - specify bash as an interpreter
This commit is contained in:
+3
-1
@@ -1,4 +1,6 @@
|
||||
ensure_working_directory!() {
|
||||
#!/usr/bin/env bash
|
||||
|
||||
function ensure_working_directory! {
|
||||
root_dir="$(git rev-parse --show-toplevel)"
|
||||
|
||||
if [[ "$PWD" != "$root_dir" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user