Index: remoting/host/installer/linux/build-deb.sh |
diff --git a/remoting/host/installer/linux/build-deb.sh b/remoting/host/installer/linux/build-deb.sh |
index 14231cb3e32e17a1a8c326c0e4cbe448bb99205f..3566b143dceb28aaddb8c7a843f9f3af05e55145 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 |
Jamie
2012/08/27 22:39:54
You should add quotes around "$version_full"
Sergey Ulanov
2012/08/27 23:29:04
Done.
|
echo "Error: Invalid \$version_full value: $version_full" >&2 |
exit 1 |
fi |