| commit | 92a864737e9c18ed031c4176bd7d3d13b7d4453c | [log] [tgz] |
|---|---|---|
| author | Jenkins <jenkins@review.openstack.org> | Tue Oct 22 14:02:59 2013 +0000 |
| committer | Gerrit Code Review <review@openstack.org> | Tue Oct 22 14:02:59 2013 +0000 |
| tree | d34362e1b28202b92df43aaeac7128e19ba9deb0 | |
| parent | a248d07f0ae2038238d0328b281cdea1848e168d [diff] | |
| parent | f43f3a59c26979f40510b7531b587b029088c871 [diff] |
Merge "./stack.sh complain no /etc/nova/nova.conf"
diff --git a/functions b/functions index d969677..4afebe0 100644 --- a/functions +++ b/functions
@@ -713,7 +713,8 @@ local section=$2 local option=$3 local value=$4 - if ! grep -q "^\[$section\]" "$file"; then + + if ! grep -q "^\[$section\]" "$file" 2>/dev/null; then # Add section at the end echo -e "\n[$section]" >>"$file" fi