Skip to content

Commit

Permalink
lib/fetch-{libc++,newlib}: never overwrite files during unzip
Browse files Browse the repository at this point in the history
  • Loading branch information
lschuermann committed Nov 14, 2024
1 parent 62948e9 commit 227dcbc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/fetch-libc++.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ done

if [[ $FOUND -ne 0 ]]; then
echo "Unpacking $ZIP_FILE..."
unzip -q $ZIP_FILE
# -n: never overwrite existing files, -q: quiet mode
unzip -n -q $ZIP_FILE
echo "Done upacking $ZIP_FILE..."
else
echo "ERROR: Unable to find tock-libc++"
Expand Down
3 changes: 2 additions & 1 deletion lib/fetch-newlib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ done

if [[ $FOUND -ne 0 ]]; then
echo "Unpacking $ZIP_FILE..."
unzip -q $ZIP_FILE
# -n: never overwrite existing files, -q: quiet mode
unzip -n -q $ZIP_FILE
echo "Done upacking $ZIP_FILE..."
else
echo "ERROR: Unable to find tock-newlib"
Expand Down

0 comments on commit 227dcbc

Please sign in to comment.