mirror of
https://github.com/linux-system-roles/network.git
synced 2026-01-23 18:35:13 +00:00
Use the `#!/usr/bin/env bash` shebang which is ansible-test friendly. This means we can remove get_ostree_data.sh from the .sanity* files. This also means we can remove the .sanity* files if we do not need them otherwise. Fix other shell scripts to use the friendly shebang and remove from the .sanity* files. Rename `pth` to `path` in honor of nscott Signed-off-by: Rich Megginson <rmeggins@redhat.com>
13 lines
365 B
Bash
Executable file
13 lines
365 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
set -euo pipefail
|
|
|
|
# This script is intended to be used as git pre-commit hook.
|
|
# Make sure file is executable and copy it into <your repo>/.git/hooks/pre-commit
|
|
# This script has to be used together with post-commit to work properly.
|
|
|
|
GITPATH=$(git rev-parse --show-toplevel)
|
|
|
|
touch "$GITPATH/.commit"
|
|
|