about summary refs log tree commit diff stats
path: root/modules
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-05-25 23:29:07 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-05-25 23:29:07 +0200
commit87c018007f0762276485d54d732cbd8376584d69 (patch)
tree13d6d9a1ac33601f87b72c4738ddc2dce8581a23 /modules
parentlf/commands/base.sh: Correctly escape single quotes for lf commands (diff)
downloadnixos-config-87c018007f0762276485d54d732cbd8376584d69.zip
lf/commands/archive_decompress.sh: Use `jar` instead of `unzip`
The `jar` command is way more lenient.
Diffstat (limited to 'modules')
-rw-r--r--modules/by-name/lf/lf/commands/default.nix2
-rwxr-xr-xmodules/by-name/lf/lf/commands/scripts/archive_decompress.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/by-name/lf/lf/commands/default.nix b/modules/by-name/lf/lf/commands/default.nix
index 7fea7357..b6baf1df 100644
--- a/modules/by-name/lf/lf/commands/default.nix
+++ b/modules/by-name/lf/lf/commands/default.nix
@@ -61,7 +61,7 @@ in {
     name = "archive_decompress";
     dependencies = [
       pkgs.gnutar
-      pkgs.unzip
+      pkgs.openjdk
       pkgs.p7zip
       pkgs.xz
       pkgs.gzip
diff --git a/modules/by-name/lf/lf/commands/scripts/archive_decompress.sh b/modules/by-name/lf/lf/commands/scripts/archive_decompress.sh
index 6cae62a2..10eb0bc5 100755
--- a/modules/by-name/lf/lf/commands/scripts/archive_decompress.sh
+++ b/modules/by-name/lf/lf/commands/scripts/archive_decompress.sh
@@ -25,7 +25,7 @@ echo "$fx" | while read -r file; do
     *.tar.gz | *.tgz) tar --extract --gzip --verbose --file="$file" ;;
     *.tar.xz | *.txz) tar --extract --xz --verbose --file="$file" ;;
     *.tar*) tar --extract --verbose --file="$file" ;;
-    *.zip) unzip "$file" ;;
+    *.zip) jar --verbose --extract --file "$file" ;;
     *.7z) 7z x "$file" ;;
     *) die "'$file' is not a supported file for unarchiving." ;;
     esac