Skip to content

Commit

Permalink
install_application: Replace unzip with ditto
Browse files Browse the repository at this point in the history
- In some cases unzip produces app bundles with broken signatures
- Tested unzip without the -a flag, which I don’t know why I decided to add originally
- ditto is afaik what Finder/ Archive Utility uses when it compressed or decompresses an archive via the Finder UI
  • Loading branch information
0xmachos committed Apr 23, 2024
1 parent c5993b7 commit c1861c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bittersweet
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ function install_application {
# IF file is a Zip

echo "[🍺] Attempting to unzip ${downloaded_file_name}"
if unzip -qa "${downloaded_file_path}" -d "${HOME}/Downloads"; then
if ditto -x -k "${downloaded_file_path}" "${HOME}/Downloads"; then
# Attempt to unzip
echo "[✅] Successfully unzipped ${downloaded_file_name}"
else
Expand Down

0 comments on commit c1861c6

Please sign in to comment.