projects
/
ganeti-local
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
640b961
)
upload: Use more compatible regular expression
author
Michael Hanselmann
<hansmi@google.com>
Mon, 7 Sep 2009 17:29:14 +0000
(19:29 +0200)
committer
Michael 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
patch
|
blob
|
history
diff --git
a/devel/upload.in
b/devel/upload.in
index
0ba650b
..
7dcd6fe
100644
(file)
--- a/
devel/upload.in
+++ b/
devel/upload.in
@@
-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=