Skip to content

Commit

Permalink
scripts: jade_ota.py to create build dir if required
Browse files Browse the repository at this point in the history
JamieDriver committed Jan 25, 2024
1 parent 3eae6c6 commit 068857f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jade_ota.py
Original file line number Diff line number Diff line change
@@ -433,6 +433,10 @@ def _log_progress(written, compressed_size):
if downloading and not args.release:
args.release = 'stable' # default to latest/stable

# Create target dir if not present
if args.writecompressed and not os.path.isdir(COMP_FW_DIR):
os.mkdir(COMP_FW_DIR)

# Get the file to OTA
if args.downloadfw:
fwlen, patchlen, fwhash, fwcmp = download_file(args.hwtarget, args.writecompressed,

0 comments on commit 068857f

Please sign in to comment.