This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch 4.15
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.15 by this push:
     new aab2447  systemvm: loop optimisation in bash (#4451)
aab2447 is described below

commit aab24476568da20ded1bf010189805c0d4e6b834
Author: dahn <[email protected]>
AuthorDate: Thu Feb 18 12:48:16 2021 +0000

    systemvm: loop optimisation in bash (#4451)
    
    Co-authored-by: Daan Hoogland <[email protected]>
---
 systemvm/debian/opt/cloud/bin/vr_cfg.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/systemvm/debian/opt/cloud/bin/vr_cfg.sh 
b/systemvm/debian/opt/cloud/bin/vr_cfg.sh
index 619ec5c..8447947 100755
--- a/systemvm/debian/opt/cloud/bin/vr_cfg.sh
+++ b/systemvm/debian/opt/cloud/bin/vr_cfg.sh
@@ -33,7 +33,7 @@ while getopts 'c:' OPTION; do
 esac; done
 
 export DEFER_CONFIG=true
-while read line; do
+cat $cfg | while read line; do
     #comment
     if [[ $line == \#* ]]; then
         continue
@@ -74,7 +74,7 @@ while read line; do
 
     fi
 
-done < $cfg
+done 
 
 # archive the configuration file
 mv $cfg /var/cache/cloud/processed/

Reply via email to