[rc.local]: Put variables into quotes in conditionals (#361)

Signed-off-by: marian-pritsak <marianp@mellanox.com>
This commit is contained in:
Marian Pritsak 2017-03-02 20:10:40 +02:00 committed by lguohan
parent 11379f9a9d
commit adc296bf6f

View File

@ -17,9 +17,9 @@ echo "install platform dependent packages at the first boot time"
if [ -f /host/platform/firsttime ]; then
if [ -n $aboot_platform ]; then
if [ -n "$aboot_platform" ]; then
platform=$aboot_platform
elif [ -n $onie_platform ]; then
elif [ -n "$onie_platform" ]; then
platform=$onie_platform
else
echo "Unknown sonic platform"