diff options
author | mail_redacted_for_web | 2015-12-04 02:55:50 +0100 |
---|---|---|
committer | mail_redacted_for_web | 2015-12-04 02:55:50 +0100 |
commit | 29dfcc23e8e6fe07b1e8b901dc0d11de3413c68f (patch) | |
tree | 90d8a5ff0a2f0f0d61f00ce1e7cee3bc3d3ae420 | |
parent | b49ae08e95f4d4d7d995166e7a2e6f287dc32d14 (diff) | |
download | mp3dir2html-29dfcc23e8e6fe07b1e8b901dc0d11de3413c68f.tar.bz2 |
Config file inclusion. The quick and dirty method.
-rwxr-xr-x | bin/mp3dir2html | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/bin/mp3dir2html b/bin/mp3dir2html index ce90f0b..c22509e 100755 --- a/bin/mp3dir2html +++ b/bin/mp3dir2html @@ -3,12 +3,16 @@ # Paste a file here that contains the HTML code to be placed _before_ the MP3 tag list. DIRLISTHEAD="/etc/mp3dir2html/head.php" -# Regular expression that is to be excluded in the final listing -DIRLISTEX='^Susperia|^B.*hse.*nkelz' - +# Regular expression that is to be excluded in the final listing should exist as +# DIRLISTEX='what.*ever|another.*one' in CONFFILE +CONFFILE='/etc/mp3dir2html/mp3dir2html.conf' # CORE SCRIPT FROM HERE. DON'T FIDDLE IF YOU DON'T KNOW WHAT YOU'RE DOING. +DIRLISTEX="0x1fedbeef" +[ -r "$CONFFILE" ] && . "$CONFFILE" || echo "WARNING: $CONFFILE not readable..." +echo "$DIRLISTEX" + function m3l_help { echo "Usage: $(basename $0) [options]";echo echo "Options:" |