Skip to content

Commit

Permalink
Merge pull request #440 from ribalda/fix-ugplus
Browse files Browse the repository at this point in the history
bin/ug(|rep)+: Let the helper script work if no helper is available
  • Loading branch information
genivia-inc authored Nov 15, 2024
2 parents ffd990f + 31eb88e commit d3e19f9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion bin/ug+
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@ fi
if [ -x "$(command -v exiftool)" ] ; then
filters="${filters}${filters:+,}gif,jpg,jpeg,mpg,mpeg,png,tiff:exiftool %"
fi
ug --filter="${filters}" "$@"
if [ -n "$filters" ]; then
ug --filter="${filters}" "$@"
else
ug "$@"
fi
6 changes: 5 additions & 1 deletion bin/ugrep+
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@ fi
if [ -x "$(command -v exiftool)" ] ; then
filters="${filters}${filters:+,}gif,jpg,jpeg,mpg,mpeg,png,tiff:exiftool %"
fi
ugrep --filter="${filters}" "$@"
if [ -n "$filters" ]; then
ug --filter="${filters}" "$@"
else
ug "$@"
fi

0 comments on commit d3e19f9

Please sign in to comment.