This commit is contained in:
Guillaume Boudreau 2016-07-15 19:10:38 +00:00 committed by GitHub
commit c89f387ab8

View file

@ -73,8 +73,12 @@ if [ $? -eq 127 ]; then
fi
# Load settings from config file if it exists
if [ -f ~/.plexupdate ]; then
source ~/.plexupdate
CONFIG_FILE="${HOME}/.plexupdate"
if [[ ! -z ${SUDO_USER} ]] ; then
CONFIG_FILE="`eval echo ~${SUDO_USER}`/.plexupdate"
fi
if [ -f ${CONFIG_FILE} ]; then
source ${CONFIG_FILE}
fi
if [ ! "${RELEASE}" = "" ]; then