Skip to content

Commit

Permalink
[installer]: remove single quotes around the value when create machin…
Browse files Browse the repository at this point in the history
…e.conf (sonic-net#1552)

Signed-off-by: Guohan Lu <[email protected]>
  • Loading branch information
lguohan authored Mar 30, 2018
1 parent a5bfa2c commit d66e79d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion installer/x86_64/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,8 @@ if [ "$install_env" = "onie" ]; then
if [ -f /etc/machine-build.conf ]; then
# onie_ variable are generate at runtime.
# they are no longer hardcoded in /etc/machine.conf
set | grep ^onie_ > $demo_mnt/machine.conf
# also remove single quotes around the value
set | grep ^onie | sed -e "s/='/=/" -e "s/'$//" > $demo_mnt/machine.conf
else
cp /etc/machine.conf $demo_mnt
fi
Expand Down

0 comments on commit d66e79d

Please sign in to comment.