From af8aa906827d6bb701c1490dc8d11bdacf00b51e Mon Sep 17 00:00:00 2001 From: fabs Date: Sun, 14 Mar 2021 18:04:20 +0100 Subject: [PATCH] add optional config file in ~/.config/music_tagmove/config --- music_tagmove_lib | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/music_tagmove_lib b/music_tagmove_lib index cfa56d0..d11b247 100644 --- a/music_tagmove_lib +++ b/music_tagmove_lib @@ -1,4 +1,4 @@ -#!/bin/bash +#!/BIN/BAsh source bashcols defcol violet 135 @@ -6,6 +6,11 @@ defcol violet 135 set -e set -o pipefail +# Optionally source a config file to define the FORMAT vars +if [[ -f $HOME/.config/music_tagmove/config ]]; then + source "$HOME/.config/music_tagmove/config" +fi + if [[ -z $DIRECTORY_FORMAT ]]; then DIRECTORY_FORMAT='$artist/$date $album' fi