diff options
| author | 2023-04-30 14:13:37 +0200 | |
|---|---|---|
| committer | 2023-04-30 14:13:37 +0200 | |
| commit | 8bfb6484df9c0a2ff73a8e23bada85e957a43c67 (patch) | |
| tree | 28084b38a5b0548ce378e8b12d0b37404558a1bd /git-version-gen | |
| parent | f1ff5caef3732062c62fdfdf38f4087fff15adb0 (diff) | |
| download | ideviceinstaller-8bfb6484df9c0a2ff73a8e23bada85e957a43c67.tar.gz ideviceinstaller-8bfb6484df9c0a2ff73a8e23bada85e957a43c67.tar.bz2 | |
git-version-gen: Prevent multiple lines of output
Diffstat (limited to 'git-version-gen')
| -rwxr-xr-x | git-version-gen | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/git-version-gen b/git-version-gen index 3eb6a42..d868952 100755 --- a/git-version-gen +++ b/git-version-gen | |||
| @@ -3,7 +3,7 @@ SRCDIR=`dirname $0` | |||
| 3 | if test -n "$1"; then | 3 | if test -n "$1"; then |
| 4 | VER=$1 | 4 | VER=$1 |
| 5 | else | 5 | else |
| 6 | if test -d "${SRCDIR}/.git" && test -x "`which git`" ; then | 6 | if test -r "${SRCDIR}/.git" && test -x "`which git`" ; then |
| 7 | git update-index -q --refresh | 7 | git update-index -q --refresh |
| 8 | if ! VER=`git describe --tags --dirty 2>/dev/null`; then | 8 | if ! VER=`git describe --tags --dirty 2>/dev/null`; then |
| 9 | COMMIT=`git rev-parse --short HEAD` | 9 | COMMIT=`git rev-parse --short HEAD` |
| @@ -16,4 +16,5 @@ else | |||
| 16 | fi | 16 | fi |
| 17 | fi | 17 | fi |
| 18 | fi | 18 | fi |
| 19 | VER=`printf %s "$VER" | head -n1` | ||
| 19 | printf %s "$VER" | 20 | printf %s "$VER" |
