From 76f3cac864b6a9a3ea9d9a7375c15540c8044aae Mon Sep 17 00:00:00 2001 From: Alex Malinovich Date: Mon, 20 Feb 2017 15:34:30 -0800 Subject: [PATCH] Specify branch to clone in installer.sh --- extras/get-plex-token | 2 +- extras/installer.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extras/get-plex-token b/extras/get-plex-token index 45ad11d..ea2140f 100755 --- a/extras/get-plex-token +++ b/extras/get-plex-token @@ -33,7 +33,7 @@ getPlexToken() { elif [ -n "$TOKEN" ]; then echo "Fetching token from Plex server" fi - + [ -n "$TOKEN" ] # simulate exit status } diff --git a/extras/installer.sh b/extras/installer.sh index e848fa7..a995c0b 100755 --- a/extras/installer.sh +++ b/extras/installer.sh @@ -136,7 +136,7 @@ install_plexupdate() { cd - &> /dev/null else echo -n "Installing plexupdate into '$FULL_PATH'... " - git clone "$ORIGIN_REPO" "$FULL_PATH" &> /dev/null || abort "install failed, cannot continue" + git clone --branch "${BRANCHNAME:-master}" "$ORIGIN_REPO" "$FULL_PATH" &> /dev/null || abort "install failed, cannot continue" echo "done" fi }