Browse code

Merge "./stack.sh complain no /etc/nova/nova.conf"

Jenkins authored on 2013/10/22 23:02:59
Showing 1 changed files
... ...
@@ -713,7 +713,8 @@ function iniset() {
713 713
     local section=$2
714 714
     local option=$3
715 715
     local value=$4
716
-    if ! grep -q "^\[$section\]" "$file"; then
716
+
717
+    if ! grep -q "^\[$section\]" "$file" 2>/dev/null; then
717 718
         # Add section at the end
718 719
         echo -e "\n[$section]" >>"$file"
719 720
     fi