mach-nix/git-hooks/pre-commit
2022-02-04 10:01:52 +07:00

7 lines
177 B
Bash
Executable file

#!/usr/bin/env bash
currBranch="$(git branch --show-current)"
if [ $currBranch == "master" ]; then
echo -n "$currBranch" > ./mach_nix/VERSION
git add ./mach_nix/VERSION
fi