Skip to content

Commit

Permalink
configs/rtl8721csm: fix "rm: missing operand" warning
Browse files Browse the repository at this point in the history
Fix the following warnings in post_download for rtl8721csm

Download image          ......  OK
Check checksum          ......  OK
Close serial port       ......  OK

Download COMPLETE!
rm: missing operand
Try 'rm --help' for more information.
rm: missing operand
Try 'rm --help' for more information.
rm: missing operand
Try 'rm --help' for more information.

Signed-off-by: Abhishek Akkabathula <[email protected]>
  • Loading branch information
abhishek-samsung authored and sunghan-chang committed Oct 28, 2021
1 parent 9299e6c commit a56d2e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/configs/rtl8721csm/rtl8721csm_download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ function post_download()
[ -e ${BL1}.bin ] && rm ${BL1}.bin
[ -e ${BL2}.bin ] && rm ${BL2}.bin
[ -e ${KERNEL_BIN_NAME} ] && rm ${KERNEL_BIN_NAME}
if test -f ${APP1_BIN_NAME}; then
if test -f "${APP1_BIN_NAME}"; then
[ -e ${APP1_BIN_NAME} ] && rm ${APP1_BIN_NAME}
fi
if test -f ${APP2_BIN_NAME}; then
if test -f "${APP2_BIN_NAME}"; then
[ -e ${APP2_BIN_NAME} ] && rm ${APP2_BIN_NAME}
fi
if test -f ${COMMON_BIN_NAME}; then
if test -f "${COMMON_BIN_NAME}"; then
[ -e ${COMMON_BIN_NAME} ] && rm ${COMMON_BIN_NAME}
fi
if test -f "${SMARTFS_BIN_PATH}"; then
Expand Down

0 comments on commit a56d2e3

Please sign in to comment.