Merge pull request #65 from gambhiro/regex

fix regex
This commit is contained in:
Matt Feemster 2016-02-11 10:58:41 -08:00
commit 9eb45e7550

View File

@ -72,7 +72,7 @@ while [ $# -gt 0 ]; do
shift
done
tarversion=$(tar --version | head -1 | sed -e 's/tar (GNU tar) \+\([0-9\.]\+\)$/\1/; s/[^0-9]//g; s/^\(.{3}\).*$/\1/;')
tarversion=$(tar --version | head -1 | sed -e 's/tar (GNU tar) \+\([0-9\.]\+\)$/\1/; s/[^0-9]//g; s/\(.\{3\}\).*/\1/;')
if [[ "$tarversion" -lt "128" ]]; then
echo "Tar >= 1.28 is required. Download the .deb from https://launchpad.net/ubuntu/+source/tar/ and install manually."