force overwrite file on unziping files

add flag "-o" to overwrite file on unzipping.
when a build is interrupted by some issues, it will cause a re-substitution problem after a rebuild the target whose source code come from a zip file (like target jzintv)
This commit is contained in:
lihex 2022-09-21 21:06:25 +08:00 committed by GitHub
parent 5d1ef41936
commit ec1210eebc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,7 +60,7 @@ case "${PKG_SOURCE_NAME}" in
7z x -o"${2}/${1}" "${FULL_SOURCE_PATH}"
;;
*.zip)
unzip -q "${FULL_SOURCE_PATH}" -d "${2}"
unzip -o -q "${FULL_SOURCE_PATH}" -d "${2}"
;;
*.diff | *.patch)
patch -d "${2}" -p1 < "${FULL_SOURCE_PATH}"