systemvm: loop optimisation in bash (#4451)

Co-authored-by: Daan Hoogland <dahn@onecht.net>
This commit is contained in:
dahn 2021-02-18 12:48:16 +00:00 committed by GitHub
parent d6509f0a21
commit aab2447656
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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/