From 003603b97c5fefadf345e71133556632d67d5131 Mon Sep 17 00:00:00 2001 From: gardners Date: Thu, 21 Nov 2013 16:36:59 +1030 Subject: [PATCH] minor tweaks to bash compatibility fixes. --- version_string.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/version_string.sh b/version_string.sh index 2f9cac3f..2035ee09 100755 --- a/version_string.sh +++ b/version_string.sh @@ -115,11 +115,11 @@ if [ -n "$dirty" ] && ! $allow_modified; then fi # Use the "git describe" command to form the version string and append $dirty. -# This ugly construction is required for use on machines with bash version 3. +# This ugly construction is required for use on machines with bash version < 4. error="$(git describe --match="$version_tag_glob" 2>&1 1>/dev/null)" || true if [ -z "$error" ]; then - echo "$(git describe --match="$version_tag_glob")"$dirty + echo "$(git describe --match="$version_tag_glob")$dirty" exit 0 fi