Skip to content

Commit 31f4457

Browse files
feat: just print version (#142)
closes #140
1 parent 4d30aec commit 31f4457

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

bin/common/utils.sh

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,9 @@ get_version_info() {
6262
fi
6363
cd /opt/sparkdock
6464
local current_branch=$(git rev-parse --abbrev-ref HEAD)
65-
local local_version=$(git rev-parse --short HEAD)
65+
local current_version=$(git rev-parse --short HEAD)
6666
local last_commit_date=$(git log -1 --format=%cd --date=format:'%Y-%m-%d %H:%M:%S')
67-
68-
# Get remote version (fetch quietly to get latest remote info)
69-
local remote_version="unknown"
70-
if git fetch origin "${current_branch}" -q 2>/dev/null; then
71-
remote_version=$(git rev-parse --short "origin/${current_branch}" 2>/dev/null || echo "unknown")
72-
fi
73-
echo "Local version: ${local_version} (${current_branch})"
74-
echo "Remote version: ${remote_version} (${current_branch})"
67+
echo "Version: ${current_version} (${current_branch})"
7568
echo "Last commit: ${last_commit_date}"
7669
echo "Last update: $(get_last_update)"
7770
}

0 commit comments

Comments
 (0)