diff options
author | Eduardo San Martin Morote <posva13@gmail.com> | 2013-12-09 22:18:20 +0100 |
---|---|---|
committer | Eduardo San Martin Morote <posva13@gmail.com> | 2013-12-09 22:18:20 +0100 |
commit | 44b23ae194a1580a6af6d692e4ba268d61828929 (patch) | |
tree | b4300f12bc04c2f51f0b1f7db911feb2fe091181 /plugins/catimg/catimg.sh | |
parent | 349fa15b187a1b2c411db90f2022013caf3479e8 (diff) | |
download | zsh-44b23ae194a1580a6af6d692e4ba268d61828929.tar.gz zsh-44b23ae194a1580a6af6d692e4ba268d61828929.tar.bz2 zsh-44b23ae194a1580a6af6d692e4ba268d61828929.zip |
catimg: fix exit without using source
supresses errors from convert whilen converting, as they
are usually just warnings
Diffstat (limited to 'plugins/catimg/catimg.sh')
-rwxr-xr-x | plugins/catimg/catimg.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/catimg/catimg.sh b/plugins/catimg/catimg.sh index c05fddcd4..cd0f2e333 100755 --- a/plugins/catimg/catimg.sh +++ b/plugins/catimg/catimg.sh @@ -59,7 +59,7 @@ fi # Display the image I=0 -convert "$IMG" -resize $COLS\> +dither `echo $REMAP` txt:- | +convert "$IMG" -resize $COLS\> +dither `echo $REMAP` txt:- 2>/dev/null | sed -e 's/.*none.*/NO NO NO/g' -e '1d;s/^.*(\(.*\)[,)].*$/\1/g;y/,/ /' | while read R G B f; do if [ ! "$R" = "NO" ]; then |