From c8b9e42649d296366adce0da35e08a4e5e629b97 Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Fri, 8 Nov 2019 19:18:35 +0000 Subject: [PATCH] Please Codefactor. Signed-off-by: Adam Warner --- automated install/basic-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index d805e927..d2295f96 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -422,7 +422,7 @@ make_repo() { pushd "${directory}" &> /dev/null || return 1 # Check current branch. If it is master, then reset to the latest availible tag. # In case extra commits have been added after tagging/release (i.e in case of metadata updates/README.MD tweaks) - curBranch = $(git rev-parse --abbrev-ref HEAD) + curBranch=$(git rev-parse --abbrev-ref HEAD) if [[ "${curBranch}" == "master" ]]; then #If we're calling make_repo() then it should always be master, we may not need to check. git reset --hard $(git describe --abbrev=0) || return $? fi @@ -458,7 +458,7 @@ update_repo() { git pull --quiet &> /dev/null || return $? # Check current branch. If it is master, then reset to the latest availible tag. # In case extra commits have been added after tagging/release (i.e in case of metadata updates/README.MD tweaks) - curBranch = $(git rev-parse --abbrev-ref HEAD) + curBranch=$(git rev-parse --abbrev-ref HEAD) if [[ "${curBranch}" == "master" ]]; then git reset --hard $(git describe --abbrev=0) || return $? fi