Skip to content

Commit adc296b

Browse files
marian-pritsaklguohan
authored andcommitted
[rc.local]: Put variables into quotes in conditionals (#361)
Signed-off-by: marian-pritsak <[email protected]>
1 parent 11379f9 commit adc296b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

files/image_config/platform/rc.local

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ echo "install platform dependent packages at the first boot time"
1717

1818
if [ -f /host/platform/firsttime ]; then
1919

20-
if [ -n $aboot_platform ]; then
20+
if [ -n "$aboot_platform" ]; then
2121
platform=$aboot_platform
22-
elif [ -n $onie_platform ]; then
22+
elif [ -n "$onie_platform" ]; then
2323
platform=$onie_platform
2424
else
2525
echo "Unknown sonic platform"

0 commit comments

Comments
 (0)