Skip to content

Commit

Permalink
fix file completion for 7z archives
Browse files Browse the repository at this point in the history
  • Loading branch information
wofr06 committed Feb 21, 2024
1 parent 27bb994 commit d989da8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lesscomplete
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ get_unpack_cmd () {
{ has_cmd bsdtar && prog=bsdtar; } ||
{ has_cmd cabextract && prog=cabextract; } ;;
7z-compressed)
{ has_cmd bsdtar && prog=bsdtar; } ||
{ has_cmd 7zz && prog=7zz; } ||
{ has_cmd 7zr && prog=7zr; } ||
{ has_cmd 7z && prog=7z; } ||
Expand Down Expand Up @@ -273,7 +272,7 @@ isarchive () {
istemp "isoinfo -d -i" "$t"| grep -E '^Joliet' && joliet=J
isoinfo -fR"$joliet" -i "$t" ;;
7zz|7za|7zr)
$prog l "$2"|grep -E '^[0-9][0-9][0-9[0-9]'|cut -c 54-|grep -Ev ' files$'
istemp "$prog l" "$2"|grep -E '^[0-9][0-9][0-9[0-9]'|cut -c 54-|grep -Ev ' files$'
esac
fi
}
Expand Down

0 comments on commit d989da8

Please sign in to comment.