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:
parent
937dde6bff
commit
39fe803963
2 changed files with 7 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue