Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: DL6ER <[email protected]>
Signed-off-by: yubiuser <[email protected]>
  • Loading branch information
yubiuser and DL6ER committed May 10, 2023
1 parent a023195 commit ff91db7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion advanced/Scripts/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion automated install/basic-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ff91db7

Please sign in to comment.