Update 2 files: bootstrap.sh, functions.zsh
This commit is contained in:
+1
-1
@@ -143,7 +143,7 @@ update_repo() {
|
||||
|
||||
if [[ -d "$TARGET_DIR/.git" ]]; then
|
||||
local remote_sha local_sha
|
||||
remote_sha=$(git ls-remote origin HEAD | awk '{print $1}')
|
||||
remote_sha=$(git ls-remote "$REPO_URL" HEAD | awk '{print $1}')
|
||||
local_sha=$(git -C "$TARGET_DIR" rev-parse HEAD)
|
||||
if [[ "$remote_sha" == "$local_sha" ]]; then
|
||||
info "Repository up to date"
|
||||
|
||||
Reference in New Issue
Block a user