mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-23 17:13:38 +00:00
16 lines
418 B
Plaintext
16 lines
418 B
Plaintext
function meshtastic_version {
|
|
meshtastic_version=$(python3 bin/buildinfo.py short)
|
|
echo -n "$meshtastic_version"
|
|
}
|
|
function web_version {
|
|
web_version=$(cat bin/web.version)
|
|
echo -n "$web_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"
|
|
} |