mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-01 10:19:59 +00:00
12 lines
327 B
Plaintext
12 lines
327 B
Plaintext
function meshtastic_version {
|
|
meshtastic_version=$(python3 bin/buildinfo.py short)
|
|
echo -n "$meshtastic_version"
|
|
}
|
|
function git_commits_num {
|
|
total_commits=$(git rev-list --all --count)
|
|
echo -n "$total_commits"
|
|
}
|
|
function git_commit_sha {
|
|
commit_sha=$(git rev-parse --short HEAD)
|
|
echo -n "$commit_sha"
|
|
} |