fix version check
authorHanno <hanno@gentoo.org>
Mon, 13 Oct 2014 08:36:06 +0000 (10:36 +0200)
committerHanno <hanno@gentoo.org>
Mon, 13 Oct 2014 08:36:06 +0000 (10:36 +0200)
bashcheck

index e3c51da..9822ef4 100755 (executable)
--- a/bashcheck
+++ b/bashcheck
@@ -16,7 +16,7 @@ tmpdir=`mktemp -d -t tmp.XXXXXXXX`
 
 [ -n "$1" ] && bash=$(which $1) || bash=$(which bash)
 echo -e "\033[95mTesting $bash ..."
-echo Bash version $BASH_VERSION
+$bash -c 'echo "Bash version $BASH_VERSION"'
 echo -e "\033[39m"
 
 #r=`a="() { echo x;}" $bash -c a 2>/dev/null`