From b961b13d60bde6072bf0e90ea219885c08f1d542 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Sat, 11 Mar 2017 16:27:00 +0100 Subject: [PATCH] Small bugfix --- advanced/Scripts/piholeCheckout.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advanced/Scripts/piholeCheckout.sh b/advanced/Scripts/piholeCheckout.sh index 112c8ab8..307d3d48 100644 --- a/advanced/Scripts/piholeCheckout.sh +++ b/advanced/Scripts/piholeCheckout.sh @@ -49,7 +49,7 @@ fetch_checkout_pull_branch() { local branch="${2}" # Check if branch exists locally - if git rev-parse --quiet --verify development &> /dev/null; then + if git rev-parse --quiet --verify "${branch}" &> /dev/null; then # Branch exists locally, we can check it out and pull it checkout_pull_branch "${directory}" "${branch}" || return 1 else