Use bash idiom instead of true and false string
This commit is contained in:
parent
e8f9deab43
commit
c08c39e02d
6
kunst
6
kunst
|
@ -12,7 +12,7 @@ COVER=/tmp/kunst.jpg
|
||||||
MUSIC_DIR="${KUNST_MUSIC_DIR:-~/Music}"
|
MUSIC_DIR="${KUNST_MUSIC_DIR:-~/Music}"
|
||||||
SIZE="${KUNST_SIZE:-250x250}"
|
SIZE="${KUNST_SIZE:-250x250}"
|
||||||
POSITION="${KUNST_POSITION:-+0+0}"
|
POSITION="${KUNST_POSITION:-+0+0}"
|
||||||
ONLINE_ALBUM_ART=false
|
ONLINE_ALBUM_ART=""
|
||||||
PROG_NAME=$(basename "$0")
|
PROG_NAME=$(basename "$0")
|
||||||
|
|
||||||
show_help() {
|
show_help() {
|
||||||
|
@ -143,8 +143,8 @@ get_cover_online() {
|
||||||
|
|
||||||
find_album_art(){
|
find_album_art(){
|
||||||
# Check if the user wants to get the album art from the internet,
|
# Check if the user wants to get the album art from the internet,
|
||||||
# regardless if the curent song has an embedded album art or not
|
# regardless if the current song has an embedded album art or not
|
||||||
if [ "$ONLINE_ALBUM_ART" == true ];then
|
if [ ! -z "$ONLINE_ALBUM_ART" ]; then
|
||||||
log "getting cover from internet"
|
log "getting cover from internet"
|
||||||
get_cover_online
|
get_cover_online
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue