Commit 44b23ae1 authored by Eduardo San Martin Morote's avatar Eduardo San Martin Morote
Browse files

catimg: fix exit without using source

supresses errors from convert whilen converting, as they
are usually just warnings
parent 349fa15b
......@@ -9,7 +9,7 @@
if [[ -x `which convert` ]]; then
function catimg() {
source $ZSH/plugins/catimg/catimg.sh $@
zsh $ZSH/plugins/catimg/catimg.sh $@
}
else
echo "catimg need convert (ImageMagick) to work)"
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment