X-Git-Url: https://git.draconx.ca/gitweb/mpdhacks.git/blobdiff_plain/a83b8b332d8f0894e0d631e46a27cc2a00bd929c..f29495317b40288f38515571c0bd015ecdb0bfa3:/thumbnail.sh diff --git a/thumbnail.sh b/thumbnail.sh index 958092c..b04f2e6 100755 --- a/thumbnail.sh +++ b/thumbnail.sh @@ -29,7 +29,7 @@ while [ "${1#--}" != "$1" -a "$1" != "-" ]; do done [ "$1" = "-" ] && shift -if ! expr match "$size" '^\([0-9]*\(x[0-9]\+\)\?\)$' &>/dev/null; then +if ! expr match "$size" '^\([0-9]*\(x[0-9]\+\)\?\)$' >/dev/null 2>&1; then echo "invalid size specification: $size" 1>&2 exit 1 fi