]> git.sommitrealweird.co.uk Git - bpgallery.git/commitdiff
Add in per gallery config file release-1.0.2
authorBrett Parker <arch@sommitrealweird.co.uk>
Sun, 16 Apr 2006 12:20:12 +0000 (12:20 +0000)
committerBrett Parker <arch@sommitrealweird.co.uk>
Sun, 16 Apr 2006 12:20:12 +0000 (12:20 +0000)
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

bpgallery.sh

index abcfafa70a027a92d62e8a35c167adfce4b1e293..948d5894980539deb5498fb327cebe4f81edd9b4 100755 (executable)
@@ -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