Unverified Commit 1551a85e authored by Maxim Cournoyer's avatar Maxim Cournoyer
Browse files

scripts: Do not hard-code /bin/bash.

Instead, use Bash from PATH.  This approach works more reliably on
distributions not strictly adhering to the File Hierarchy
Standard (FHS) such as Guix System or NixOS.

Change-Id: Ic7b168d0f4d73f3a1cb1085e9a84600a25d153c5
parent d0342d2e
...@@ -51,7 +51,7 @@ install_hook() ...@@ -51,7 +51,7 @@ install_hook()
exit 1 exit 1
fi fi
echo Installing pre-commit hook in "$hooks_path" echo Installing pre-commit hook in "$hooks_path"
echo "/bin/bash $(realpath $0)" > "$hooks_path"/pre-commit echo "$(realpath $0)" > "$hooks_path"/pre-commit
chmod +x "$hooks_path"/pre-commit chmod +x "$hooks_path"/pre-commit
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment