dont show errors from imagemagick

This commit is contained in:
Siddharth Dushantha 2019-07-31 19:40:10 +02:00
parent e484693014
commit 175f5b011d
1 changed files with 3 additions and 3 deletions

6
kunst
View File

@ -9,7 +9,7 @@
VERSION=1.2.3 VERSION=1.2.3
COVER=/tmp/kunst.jpg COVER=/tmp/kunst.jpg
MUSIC_DIR=~/Music/ MUSIC_DIR=~/music/
SIZE=250x250 SIZE=250x250
@ -143,7 +143,7 @@ update_cover() {
if [ -f "$CANDIDATE" ]; then if [ -f "$CANDIDATE" ]; then
STATUS=0 STATUS=0
ARTLESS=false ARTLESS=false
convert "$CANDIDATE" $COVER convert "$CANDIDATE" $COVER &> /dev/null
if [ ! $SILENT ];then if [ ! $SILENT ];then
echo "kunst: found cover.png" echo "kunst: found cover.png"
fi fi
@ -160,7 +160,7 @@ update_cover() {
# Resize the image to 250x250 # Resize the image to 250x250
if [ $ARTLESS == false ]; then if [ $ARTLESS == false ]; then
convert $COVER -resize $SIZE $COVER convert $COVER -resize $SIZE $COVER &> /dev/null
if [ ! $SILENT ];then if [ ! $SILENT ];then
echo "kunst: resized album art to $SIZE" echo "kunst: resized album art to $SIZE"
fi fi