diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-27 23:29:19 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-27 23:29:19 +0000 |
commit | 9329a3a32f9e6167cd8ff339d9c0d5ffd9f476be (patch) | |
tree | 86c0f0d194c8cbb5ab21ba95db46052db729f62d /remoting | |
parent | 2f704fdef3b4d489725446fae9a3877153f3c8ab (diff) | |
download | chromium_src-9329a3a32f9e6167cd8ff339d9c0d5ffd9f476be.zip chromium_src-9329a3a32f9e6167cd8ff339d9c0d5ffd9f476be.tar.gz chromium_src-9329a3a32f9e6167cd8ff339d9c0d5ffd9f476be.tar.bz2 |
Simplify regex matching in build-deb.sh.
Review URL: https://chromiumcodereview.appspot.com/10882070
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153577 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting')
-rwxr-xr-x | remoting/host/installer/linux/build-deb.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/remoting/host/installer/linux/build-deb.sh b/remoting/host/installer/linux/build-deb.sh index 14231cb..3c0233e 100755 --- a/remoting/host/installer/linux/build-deb.sh +++ b/remoting/host/installer/linux/build-deb.sh @@ -14,8 +14,7 @@ if [[ -z "$version_full" ]]; then version_full="$version_base.$version_build" fi -if !(echo $version_full | grep -E \ - "^[[:digit:]]+.[[:digit:]]+.[[:digit:]]+.[[:digit:]]+$" > /dev/null); then +if [[ ! "$version_full" =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]]; then echo "Error: Invalid \$version_full value: $version_full" >&2 exit 1 fi |