fixed extract for zip

This commit is contained in:
Hannes
2026-03-10 18:37:02 +01:00
parent fbf80f998e
commit f4ab71c1fc
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -204,3 +204,7 @@ else
echo "The command 'yazi' is not installed. Please install 'yazi' to use this: https://github.com/sxyazi/yazi" echo "The command 'yazi' is not installed. Please install 'yazi' to use this: https://github.com/sxyazi/yazi"
end end
end end
if test -e /usr/bin/sudo-rs
alias sudo=sudo-rs
end
+1 -1
View File
@@ -44,7 +44,7 @@ function extract
case 'application/zstd' case 'application/zstd'
tar --zstd -xvf "$archive" -C "$output_dir" tar --zstd -xvf "$archive" -C "$output_dir"
case 'application/zip' case 'application/zip'
unzip -j "$archive" -d "$output_dir" unzip "$archive" -d "$output_dir"
case 'application/x-7z-compressed' case 'application/x-7z-compressed'
7z x "$archive" -o"$output_dir" 7z x "$archive" -o"$output_dir"
case 'application/x-rar' 'application/vnd.rar' case 'application/x-rar' 'application/vnd.rar'