Skip to content

Commit

Permalink
Fixed branch checking
Browse files Browse the repository at this point in the history
  • Loading branch information
maouw committed Oct 25, 2023
1 parent 4b1e0ba commit 0aad988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hyakvnc
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ function hyakvnc_check_updates {
touch "${HYAKVNC_REPO_DIR}/.last_update_check"

# Get hash of local HEAD:
if [[ "$(git -C "${HYAKVNC_REPO_DIR}" rev-parse main || true)" == "$(git -C "${HYAKVNC_REPO_DIR}" ls-remote --heads --refs origin "${cur_branch}" | cut -f1 || true)" ]]; then
if [[ "$(git -C "${HYAKVNC_REPO_DIR}" rev-parse "${cur_branch}" || true)" == "$(git -C "${HYAKVNC_REPO_DIR}" ls-remote --heads --refs origin "${cur_branch}" | cut -f1 || true)" ]]; then
log INFO "hyakvnc is up to date."
return 1
fi
Expand Down

0 comments on commit 0aad988

Please sign in to comment.