From: Kevin McCarthy Date: Mon, 16 Apr 2018 23:29:08 +0000 (-0700) Subject: Switch to using [ -r ] in version.sh for Bourne shell compatibility. X-Git-Tag: mutt-1-10-rel~27^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=296ccab51a5b509c2b68ca7c4b926adb84c6ca59;p=mutt Switch to using [ -r ] in version.sh for Bourne shell compatibility. Thanks to Paul Keusemann for pointing out the issue. --- diff --git a/version.sh b/version.sh index bc850f6c..537be325 100644 --- a/version.sh +++ b/version.sh @@ -7,7 +7,7 @@ srcdir=`dirname "$0"` && cd "$srcdir" || exit 1 # Ensure that we have a repo here. # If not, just cat the VERSION file; it contains the latest release number. -{ [ -e ".git" ] && command -v git >/dev/null 2>&1; } \ +{ [ -r ".git" ] && command -v git >/dev/null 2>&1; } \ || exec cat VERSION latesttag="$(git describe --tags --match 'mutt-*-rel' --abbrev=0)"