commit e7f7ce9c501beb9f3fafea8bb039440deb9d6819 parent a8f61c57c64973e089c1754a13dd202c17d26702 Author: sin <sin@2f30.org> Date: Sat, 21 Dec 2013 17:59:12 +0000 Fix redirection Diffstat:
M | stripjpeg | | | 5 | ++--- |
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/stripjpeg b/stripjpeg @@ -1,9 +1,8 @@ #!/bin/sh if [ ! $# -eq 1 ]; then - echo "usage: $(basename $0) <jpeg>" 2>&1 + echo "usage: $(basename $0) <jpeg>" 1>&2 exit 1 fi -jpegtran -copy none -outfile $1.tmp $1 && - mv $1.tmp $1 +jpegtran -copy none -outfile $1.tmp $1 && mv $1.tmp $1