From a8e3671a948b7a49e220b11089d7720baab6c1b5 Mon Sep 17 00:00:00 2001 From: cimryan Date: Tue, 23 Oct 2018 06:38:32 -0700 Subject: [PATCH] Set the branch and repo only if not already set. --- windows_archive/setup-teslausb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/windows_archive/setup-teslausb b/windows_archive/setup-teslausb index ef965ce..9716c28 100644 --- a/windows_archive/setup-teslausb +++ b/windows_archive/setup-teslausb @@ -1,9 +1,17 @@ #!/bin/bash -eu -REPO=cimryan -BRANCH=master user_enabled_pushover=false +if [[ -z $REPO ]] +then + REPO=cimryan +fi + +f [[ -z $BRANCH ]] +then + BRANCH=master +fi + if ! [ $(id -u) = 0 ] then echo "STOP: Run sudo -i."