summaryrefslogtreecommitdiff
path: root/script/update/blobs/download
diff options
context:
space:
mode:
Diffstat (limited to 'script/update/blobs/download')
-rwxr-xr-xscript/update/blobs/download3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/update/blobs/download b/script/update/blobs/download
index 012cf0b1..05730c4b 100755
--- a/script/update/blobs/download
+++ b/script/update/blobs/download
@@ -423,6 +423,9 @@ extract_sch5545ec()
printf "sch5545 firmware already downloaded\n" 1>&2
return 0
fi
+ [ -d "${_sch5545ec_destination%/*}" ] || \
+ mkdir -p "${_sch5545ec_destination%/*}" || \
+ err "extract_sch: can't mkdir ${_sch5545ec_destination%/*}"
[ ! -d "${appdir}" ] || rm -Rf "${appdir}" || \
err "extract_sch5545ec: can't remove ${appdir}"