X-Git-Url: https://git.sommitrealweird.co.uk/bpgallery.git/blobdiff_plain/f880a0deea6b006f8d90c0f4ee15b1582f41bfee..0ad51c0b6c8e86d68005a47a9575aef62385723d:/bpgallery.sh?ds=sidebyside diff --git a/bpgallery.sh b/bpgallery.sh index 27bbdc4..6117231 100755 --- a/bpgallery.sh +++ b/bpgallery.sh @@ -19,7 +19,7 @@ set -f -VERSION="1.0.0" +VERSION="1.0.0+arch" function bpgallery_default_head() { cat <${TITLE} @@ -41,12 +43,16 @@ cat <
$caption
END } +declare -rf bpgallery_default_thumbsline + function bpgallery_default_tail() { cat << END @@ -54,6 +60,8 @@ cat << END END } +declare -rf bpgallery_default_tail + function bpgallery_default_stylesheet() { cat </dev/null fi if [[ -e /etc/bpgallery/config ]] ; then - . /etc/bpgallery/config + . /etc/bpgallery/config 2>/dev/null fi if [[ -e $HOME/.bpgallery.rc ]]; then - . $HOME/.bpgallery.rc + . $HOME/.bpgallery.rc 2>/dev/null fi if [[ -z ${BPGALLERY_THEME} ]]; then @@ -104,11 +122,11 @@ if [[ -z ${BPGALLERY_THEME} ]]; then fi if [[ -e $HOME/.bpgallery.themes/${BPGALLERY_THEME} ]]; then - . $HOME/.bpgallery.themes/${BPGALLERY_THEME} + . $HOME/.bpgallery.themes/${BPGALLERY_THEME} 2>/dev/null elif [[ -e /usr/local/etc/bpgallery/themes/${BPGALLERY_THEME} ]]; then - . /usr/local/etc/bpgallery/themes/${BPGALLERY_THEME} + . /usr/local/etc/bpgallery/themes/${BPGALLERY_THEME} 2>/dev/null elif [[ -e /etc/bpgallery/themes/${BPGALLERY_THEME} ]]; then - . /etc/bpgallery/themes/${BPGALLERY_THEME} + . /etc/bpgallery/themes/${BPGALLERY_THEME} 2>/dev/null fi if [[ -z $TITLE ]]; then @@ -167,10 +185,6 @@ if [[ -z $CAPTIONHEIGHT ]]; then CAPTIONHEIGHT=75 fi -if [[ -z $DESCRIPTION ]]; then - DESCRIPTION="" -fi - if declare -F "bpgallery_${BPGALLERY_THEME}_head" > /dev/null ; then BPGALLERY_HEAD_FUNCTION="bpgallery_${BPGALLERY_THEME}_head" else