Fix branchname

This commit is contained in:
Alex Malinovich 2017-03-07 21:57:11 -08:00
commit a17ab855c8

View file

@ -229,7 +229,7 @@ if [ "${AUTOUPDATE}" = "yes" ]; then
warn "You have made changes to the plexupdate files, cannot auto update"
else
# Force FETCH_HEAD to point to the correct branch (for older versions of git which don't default to current branch)
if git fetch origin $BRANCHNAME --quiet && ! git diff --quiet FETCH_HEAD; then
if git fetch origin ${BRANCHNAME:-master} --quiet && ! git diff --quiet FETCH_HEAD; then
info "Auto-updating..."
# Use an associative array to store permissions. If you're running bash < 4, the declare will fail and we'll