Skip to content

Commit

Permalink
Add a check for existing output dir.
Browse files Browse the repository at this point in the history
  • Loading branch information
icedream committed Dec 17, 2022
1 parent e94d3a2 commit 658e674
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions generate-updater-win.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ if [ "${#files[@]}" -lt 1 ]; then
fi

output_dir="./updater/$device_id"
if [ ! -d "$output_dir" ]; then
log_fatal "Run ./unpack-updater.sh for this device first." >&2
fi

for file in "${files[@]}"; do
cp -v "${file}" "${output_dir}/win"/update.img
Expand Down

0 comments on commit 658e674

Please sign in to comment.