Skip to content

Commit

Permalink
fix typo in xlsx handling
Browse files Browse the repository at this point in the history
  • Loading branch information
wofr06 committed Dec 9, 2024
1 parent 735327d commit 532d493
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
6 changes: 3 additions & 3 deletions lesspipe.sh
Original file line number Diff line number Diff line change
@@ -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 () {
Expand Down Expand Up @@ -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"); } ;;
Expand Down

1 comment on commit 532d493

@Konfekt
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this a type? xls2csv exists, but maybe does not convert XLSX files, but only XLS ones? There's xlsx2csv though

Please sign in to comment.