mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
systemvm: loop optimisation in bash (#4451)
Co-authored-by: Daan Hoogland <dahn@onecht.net>
This commit is contained in:
parent
d6509f0a21
commit
aab2447656
@ -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/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user