commit b1868127e4102b2e073750c7f55fd445bee028be parent 226d9136b89ac6f714ff5e9d67dea278f149bedd Author: FRIGN <dev@frign.de> Date: Tue, 5 Jan 2016 20:41:57 +0100 Fix 2ff stderr-redirect Thanks izabera for spotting this! Diffstat:
M | 2ff | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/2ff b/2ff @@ -12,13 +12,13 @@ FORMAT=$(file -ib $TMP | cut -d ";" -f 1); case "$FORMAT" in image/png) png2ff < $TMP; ret=$? ;; image/jpeg) jpg2ff < $TMP; ret=$? ;; - *) xconvert $TMP png:- 2&>/dev/null | png2ff 2&>/dev/null; ret=$? ;; + *) xconvert $TMP png:- 2>/dev/null | png2ff 2>/dev/null; ret=$? ;; esac rm $TMP; if [ $ret -ne 0 ]; then - printf "%s: failed to convert %s\n" "$0" "$FORMAT" 1>&2; + printf "%s: failed to convert %s\n" "$0" "$FORMAT" >&2; fi exit $ret;