Skip to content

Commit

Permalink
fix(install_linux): Update unzip arguments (#1771)
Browse files Browse the repository at this point in the history
Use `-o` (overwrite) instead of `-u` (update).

Behaviourally, there shouldn't be any difference from this change.

This improves compatibility with BusyBox unzip, which only supports `-o`.
  • Loading branch information
alexjurkiewicz authored Jun 1, 2023
1 parent c1aef40 commit 7180901
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ echo "Downloaded successfully"

echo -e "\n\n===================================================="
echo "Unpacking ${download_zip} ..."
unzip -u "${download_zip}" -d "${download_path}"
unzip -o "${download_zip}" -d "${download_path}"
if [[ $os == "windows"* ]]; then
dest="${TFLINT_INSTALL_PATH:-/bin}/"
echo "Installing ${download_executable} to ${dest} ..."
Expand Down

0 comments on commit 7180901

Please sign in to comment.