Update 30_install_update_plexpy.sh

This commit is contained in:
zaggash 2016-02-23 11:39:48 +01:00
parent c21bbf8e07
commit 8b793e7e8e

View File

@ -1,5 +1,8 @@
#!/bin/bash
[ "$DEV" ] && BRANCH="dev" || BRANCH="master"
#If variable $ADVANCED_DEV_BRANCH, set branch to DEV, otherwise, default to master
[ "$ADVANCED_DEV_BRANCH" ] && BRANCH="dev" || BRANCH="master"
#Display Warning message
[ "$ADVANCED_DEV_BRANCH" ] && echo "BRANCH IS DEV, NO DOCKER SUPPORT WITH THIS BRANCH, THANKS"
echo "Cloning $BRANCH branch..."
[[ ! -d /opt/plexpy/.git ]] && (git clone https://github.com/drzoidberg33/plexpy.git --branch $BRANCH /opt/plexpy && \
chown -R abc:abc /config)