]> git.draconx.ca Git - mpdhacks.git/commitdiff
Fix stuff for systems without bash as /bin/sh
authorNick Bowler <nbowler@draconx.ca>
Thu, 8 May 2008 15:03:32 +0000 (11:03 -0400)
committerNick Bowler <nbowler@draconx.ca>
Sat, 29 Jun 2019 16:05:58 +0000 (12:05 -0400)
thumbnail.sh

index 958092c6fd9207c3dbb770a142eb305cdf44b1c5..b04f2e63d55ce77a677a59eb724354f47ef5de69 100755 (executable)
@@ -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