upload: Use more compatible regular expression
authorMichael Hanselmann <hansmi@google.com>
Mon, 7 Sep 2009 17:29:14 +0000 (19:29 +0200)
committerMichael Hanselmann <hansmi@google.com>
Wed, 9 Sep 2009 13:50:24 +0000 (15:50 +0200)
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Luca Bigliardi <shammash@google.com>

devel/upload.in

index 0ba650b..7dcd6fe 100644 (file)
@@ -64,7 +64,7 @@ TXD=`mktemp -d`
 trap 'rm -rf $TXD' EXIT
 
 if [[ -f /proc/cpuinfo ]]; then
-  cpu_count=$(grep -E -c '^processor\s*:' /proc/cpuinfo)
+  cpu_count=$(grep -E -c '^processor[[:space:]]*:' /proc/cpuinfo)
   make_args=-j$(( cpu_count + 1 ))
 else
   make_args=