From: Brett Parker Date: Sun, 16 Apr 2006 12:20:12 +0000 (+0000) Subject: Add in per gallery config file X-Git-Tag: release-1.0.2 X-Git-Url: https://git.sommitrealweird.co.uk/bpgallery.git/commitdiff_plain/56fdabc7cf470c6d6cee9efc652dda63f7dc7fa8?ds=inline Add in per gallery config file Source the file .bpgallery.rc in the directory that we're pointed to for gallery specific options. git-archimport-id: arch@sommitrealweird.co.uk--2005-desktop/bpgallery--mainline--1.0--patch-14 --- diff --git a/bpgallery.sh b/bpgallery.sh index abcfafa..948d589 100755 --- a/bpgallery.sh +++ b/bpgallery.sh @@ -142,6 +142,10 @@ if [[ -e $HOME/.bpgallery.rc ]]; then . $HOME/.bpgallery.rc 2>/dev/null fi +if [[ -e $1 && -d $1 && -e $1/.bpgallery.rc ]]; then + . $1/.bpgallery.rc 2>/dev/null +fi + if [[ -z ${BPGALLERY_THEME} ]]; then BPGALLERY_THEME=default fi