File tree Expand file tree Collapse file tree 4 files changed +19
-5
lines changed Expand file tree Collapse file tree 4 files changed +19
-5
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3- ## Unreleased
3+ ## [ 0.22.3 ] ( https://github.com/TypedDevs/bashunit/compare/0.22.2...0.22.3 ) - 2025-07-27
44
55- Fix NixOS support
66 - Fix parallel and ` compgen `
Original file line number Diff line number Diff line change 22set -euo pipefail
33
44# shellcheck disable=SC2034
5- declare -r BASHUNIT_VERSION=" 0.22.2 "
5+ declare -r BASHUNIT_VERSION=" 0.22.3 "
66
77# shellcheck disable=SC2155
88declare -r BASHUNIT_ROOT_DIR=" $( dirname " ${BASH_SOURCE[0]} " ) "
Original file line number Diff line number Diff line change @@ -6,6 +6,16 @@ function is_git_installed() {
66 command -v git > /dev/null 2>&1
77}
88
9+ function get_latest_tag() {
10+ local repository_url=$1
11+
12+ git ls-remote --tags " $repository_url " |
13+ awk ' {print $2}' |
14+ sed ' s|^refs/tags/||' |
15+ sort -Vr |
16+ head -n 1
17+ }
18+
919function build_and_install_beta() {
1020 echo " > Downloading non-stable version: 'beta'"
1121
@@ -82,7 +92,11 @@ elif [[ $# -eq 2 ]]; then
8292fi
8393
8494BASHUNIT_GIT_REPO=" https://github.com/TypedDevs/bashunit"
85- LATEST_BASHUNIT_VERSION=" 0.22.2"
95+ if is_git_installed; then
96+ LATEST_BASHUNIT_VERSION=" $( get_latest_tag " $BASHUNIT_GIT_REPO " ) "
97+ else
98+ LATEST_BASHUNIT_VERSION=" 0.22.3"
99+ fi
86100TAG=" $LATEST_BASHUNIT_VERSION "
87101
88102cd " $( dirname " $0 " ) "
Original file line number Diff line number Diff line change 11{
22 "name" : " bashunit-docs" ,
3- "version" : " 0.22.2 " ,
4- "checksum" : " b52b602de0f1d345cc99b07506840d6beaa5c64d1e631e7243866d7e3273f439 " ,
3+ "version" : " 0.22.3 " ,
4+ "checksum" : " efae498584b4f11cd05e4acbba586009e391259fdbfac391844b75b7552e00d7 " ,
55 "description" : " Docs for bashunit a simple testing library for bash scripts" ,
66 "main" : " index.js" ,
77 "repository" : " git@github.com:TypedDevs/bashunit.git" ,
You can’t perform that action at this time.
0 commit comments