Skip to content

Commit aab2447

Browse files
DaanHooglandDaan Hoogland
andauthored
systemvm: loop optimisation in bash (#4451)
Co-authored-by: Daan Hoogland <dahn@onecht.net>
1 parent d6509f0 commit aab2447

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

systemvm/debian/opt/cloud/bin/vr_cfg.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ while getopts 'c:' OPTION; do
3333
esac; done
3434

3535
export DEFER_CONFIG=true
36-
while read line; do
36+
cat $cfg | while read line; do
3737
#comment
3838
if [[ $line == \#* ]]; then
3939
continue
@@ -74,7 +74,7 @@ while read line; do
7474

7575
fi
7676

77-
done < $cfg
77+
done
7878

7979
# archive the configuration file
8080
mv $cfg /var/cache/cloud/processed/

0 commit comments

Comments
 (0)