diff options
| -rwxr-xr-x | contrib/platformtest.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/platformtest.sh b/contrib/platformtest.sh index aee7f299..0a518b8a 100755 --- a/contrib/platformtest.sh +++ b/contrib/platformtest.sh @@ -105,7 +105,7 @@ fi # Get ngIRCd version information if [ -d ".git" ]; then VERSION=`git log --abbrev-commit --pretty=oneline HEAD~1.. \ - | cut -d' ' -f1 | tr -d '.'` + | head -1 | cut -d' ' -f1 | tr -d '.'` elif [ -r "Makefile" ]; then eval $(grep "^VERSION = " Makefile | sed -e 's/ //g') fi |