fixed extract for zip
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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'
|
||||||
|
|||||||
Reference in New Issue
Block a user