1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2026-01-04 09:34:44 +01:00

catimg: fix exit without using source

supresses errors from convert whilen converting, as they
are usually just warnings
This commit is contained in:
Eduardo San Martin Morote
2013-12-09 22:18:20 +01:00
parent 349fa15b18
commit 44b23ae194
2 changed files with 2 additions and 2 deletions

View File

@@ -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