From ff91db7b9af422f1ce6c6aaeadb2d5f4b5e2260a Mon Sep 17 00:00:00 2001 From: yubiuser Date: Wed, 10 May 2023 13:50:06 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: DL6ER Signed-off-by: yubiuser --- advanced/Scripts/update.sh | 2 +- automated install/basic-install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/advanced/Scripts/update.sh b/advanced/Scripts/update.sh index 9bd553fe..c80edf1d 100755 --- a/advanced/Scripts/update.sh +++ b/advanced/Scripts/update.sh @@ -58,7 +58,7 @@ GitCheckUpdateAvail() { # need @{0} LOCAL="$(git rev-parse "@{0}")" - # check if the local branch ef is a branch or a tag on remote repo + # check if the local branch ref is a branch or a tag on remote repo if git show-ref -q --verify "refs/remotes/origin/$curBranch" 2>/dev/null; then ref_is_tag=false elif git show-ref -q --verify "refs/tags/$curBranch" 2>/dev/null; then diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index eadda481..d2fc1d43 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -478,7 +478,7 @@ update_repo() { # Remove any leading "heads/" as $curBranch is later used to check if local branch is remote branch or tag curBranch=$(git rev-parse --abbrev-ref HEAD| sed "s/^heads\///g") - # check if the local branch ef is a branch or a tag on remote repo + # check if the local branch ref is a branch or a tag on remote repo if git show-ref -q --verify "refs/remotes/origin/$curBranch" 2>/dev/null; then ref_is_branch=true elif git show-ref -q --verify "refs/tags/$curBranch" 2>/dev/null; then