Skip to content

Commit

Permalink
extract_dtb: Fix derp
Browse files Browse the repository at this point in the history
* safe_output_path directly receives output_dir argument, not args
  • Loading branch information
SebaUbuntu authored and PabloCastellano committed Mar 19, 2021
1 parent b669306 commit 43793a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extract_dtb/extract_dtb.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def safe_output_path(output_dir, dtb_filename_new):
"DTB file path points outside of extraction"
" directory: " + dtb_filename_new
)
ret = os.path.join(args.output_dir, dtb_filename_new)
ret = os.path.join(output_dir, dtb_filename_new)
os.makedirs(os.path.dirname(ret), exist_ok=True)
return ret

Expand Down

0 comments on commit 43793a3

Please sign in to comment.