1
1
Fork 0
mirror of https://github.com/pbatard/rufus.git synced 2024-08-14 23:57:05 +00:00

[internal] remove grep dependency in git pre-commit hook

This commit is contained in:
Pete Batard 2012-05-16 12:17:07 +01:00
parent 937dde6bff
commit 39fe803963
2 changed files with 7 additions and 8 deletions

View file

@ -10,10 +10,9 @@
# fi
type -P sed &>/dev/null || { echo "sed command not found. Aborting." >&2; exit 1; }
type -P grep &>/dev/null || { echo "grep command not found. Aborting." >&2; exit 1; }
type -P git &>/dev/null || { echo "git command not found. Aborting." >&2; exit 1; }
VER=`git shortlog | grep -E '^[ ]+' | wc -l`
VER=`git log --oneline | wc -l`
# trim spaces
TAGVER=`echo $VER`
# there may be a better way to prevent improper nano on amend. For now the detection