Skip to content

Commit 3b3b004

Browse files
authored
bfb-install: add validation of bfb file is exist (#294)
Add the check if the input bfb file exists. RM #4551986 Signed-off-by: Dong Zhou <[email protected]>
1 parent 5507335 commit 3b3b004

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/bfb-install

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,12 @@ if [ -n "${bfb}" -a -n "${pldm}" ]; then
676676
exit 1
677677
fi
678678

679+
# Check if bfb file exists.
680+
if [ -n "${bfb}" -a ! -e "${bfb}" ]; then
681+
echo "Error: ${bfb} not found."
682+
exit 1
683+
fi
684+
679685
# Check if bfb and rshim are set and non-empty
680686
if [ -z "${rshim}" ]; then
681687
echo "Error: Need to provide rshim device name."

0 commit comments

Comments
 (0)