flash_rwlegacy: fix check of emmc controller address

fix test grouping inside of if stmt that cause false positive
indication that device-specific controller address was known
This commit is contained in:
Matt Devo
2016-08-03 20:56:32 -05:00
committed by Matt DeVillier
parent 1993fa1375
commit 1d7f0bc999

View File

@@ -86,7 +86,7 @@ if [ "$useHeadless" = true ]; then
fi
fi
#add emmc/sdcard controller addresses for Baytrail/Braswell if known
if [[ "$isBaytrail" = true || "$isBraswell" = true && "$emmcAddr" != "" ]]; then
if [[ ( "$isBaytrail" = true || "$isBraswell" = true ) && "$emmcAddr" != "" ]]; then
${cbfstoolcmd} ${seabios_file} remove -n etc/sdcard0 > /dev/null 2>&1
${cbfstoolcmd} ${seabios_file} remove -n etc/sdcard1 > /dev/null 2>&1
${cbfstoolcmd} ${seabios_file} remove -n etc/sdcard2 > /dev/null 2>&1