Skip to content

Commit

Permalink
Add plain tar to autodescribe
Browse files Browse the repository at this point in the history
  • Loading branch information
dfandrich committed Jan 3, 2025
1 parent 7875ed4 commit d053ca0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions autodescribe
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,12 @@ comment_tzst () {
get_comment_compressed_tar "$1" 'zstd -dc --'
}

# File type: tar (tar archive)
# Comments are taken from embedded files.
# requires: tar, man-db, xmlstarlet
comment_tar () {
get_comment_compressed_tar "$1" 'cat --'
}

# File type: lzh (lzh/lha archive with desc.sdi comment)
# requires: lha || lhasa
Expand Down Expand Up @@ -1591,6 +1597,8 @@ for f in "$@" ; do
;;
*.svgz) TYPE=svgz
;;
*.tar) TYPE=tar
;;
*.tar.bz2 | *.tbz | *.tbz2)
TYPE=tbz2
;;
Expand Down

0 comments on commit d053ca0

Please sign in to comment.