diff --git a/ChangeLog b/ChangeLog index ad9d7af..2fb4b2e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ **************************************************************************** # ChangeLog for lesspipe.sh # **************************************************************************** +- correct typo in xlsx files handling Version 2.16 Nov 10 2024 - security fix: check file name if used with ar - add --ansi to mdcat (fixes #48) diff --git a/lesspipe.sh b/lesspipe.sh index 3ad4f97..67601e2 100755 --- a/lesspipe.sh +++ b/lesspipe.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash # lesspipe.sh, a preprocessor for less -lesspipe_version=2.16 + lesspipe_version=2.16 # Author: Wolfgang Friebel (wp.friebel AT gmail.com) has_cmd () { @@ -298,8 +298,8 @@ get_unpack_cmd () { lz4) has_cmd lz4 && cmd=(lz4 -cdq "$2") ;; xlsx) - { has_cmd in2csv && cmd=(in2csv -f xls "$2"); } || - { has_cmd excel2csv && cmd=(istemp xls2csv "$2"); } ;; + { has_cmd in2csv && cmd=(in2csv -f xlsx "$2"); } || + { has_cmd excel2csv && cmd=(istemp excel2csv "$2"); } ;; ms-excel) { has_cmd in2csv && cmd=(in2csv -f xls "$2"); } || { has_cmd xls2csv && cmd=(istemp xls2csv "$2"); } ;;