Add additional check if directory is empty or hex file doesn't exists
This commit is contained in:
parent
55c2bf0dee
commit
fb84fd11a8
@ -33,6 +33,10 @@ if [ ! -d "$directory" ]; then
|
||||
fi
|
||||
|
||||
for hexfile in "$directory"/*.hex; do
|
||||
if [ ! -f "$hexfile" ]; then
|
||||
continue
|
||||
fi
|
||||
|
||||
filename=`basename $hexfile .hex`
|
||||
|
||||
# Parse hex file and write XML in file
|
||||
|
Loading…
x
Reference in New Issue
Block a user