From 299377270e628eed84e4489989edf772e89170cc Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Tue, 8 Oct 2013 14:16:38 -0400 Subject: [PATCH] Closes #2 : Add -o to fix a broken grep on the bash version in cygwin --- cmdarg.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmdarg.sh b/cmdarg.sh index 7072446..4e275ea 100644 --- a/cmdarg.sh +++ b/cmdarg.sh @@ -1,6 +1,6 @@ #!/bin/bash -bashversion=$(bash --version | head -n 1 | grep "version [0-9]" | cut -d ' ' -f 2) +bashversion=$(bash --version | head -n 1 | grep -o "version [0-9]" | cut -d ' ' -f 2) if [ $bashversion -lt 4 ]; then echo "cmdarg is incompatible with bash versions < 4.0, please upgrade bash" >&2 exit 1