diff --git a/bin/ug+ b/bin/ug+ index e6d5c3bd..65c7be9c 100755 --- a/bin/ug+ +++ b/bin/ug+ @@ -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 diff --git a/bin/ugrep+ b/bin/ugrep+ index 5567dbb5..65c7be9c 100755 --- a/bin/ugrep+ +++ b/bin/ugrep+ @@ -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