config through environment variables

This commit is contained in:
Siddharth Dushantha 2019-08-01 08:54:40 +02:00
parent 8e198f885e
commit f1ba66939b
1 changed files with 4 additions and 1 deletions

5
kunst
View File

@ -9,7 +9,7 @@
VERSION=1.2.4
COVER=/tmp/kunst.jpg
MUSIC_DIR=~/music/
MUSIC_DIR=~/Music/
SIZE=250x250
@ -180,6 +180,9 @@ pre_exit() {
main() {
[[ $KUNST_MUSIC_DIR != "" ]] && MUSIC_DIR=$KUNST_MUSIC_DIR && echo "custom dir"
[[ $KUNST_SIZE != "" ]] && SIZE=$KUNST_SIZE && echo "custom size"
# Flag to run some commands only once in the loop
FIRST_RUN=true