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 1
1
# Changelog
2
2
3
- ## Unreleased
3
+ ## [ 0.22.3 ] ( https://github.com/TypedDevs/bashunit/compare/0.22.2...0.22.3 ) - 2025-07-27
4
4
5
5
- Fix NixOS support
6
6
- Fix parallel and ` compgen `
Original file line number Diff line number Diff line change 2
2
set -euo pipefail
3
3
4
4
# shellcheck disable=SC2034
5
- declare -r BASHUNIT_VERSION=" 0.22.2 "
5
+ declare -r BASHUNIT_VERSION=" 0.22.3 "
6
6
7
7
# shellcheck disable=SC2155
8
8
declare -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() {
6
6
command -v git > /dev/null 2>&1
7
7
}
8
8
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
+
9
19
function build_and_install_beta() {
10
20
echo " > Downloading non-stable version: 'beta'"
11
21
@@ -82,7 +92,11 @@ elif [[ $# -eq 2 ]]; then
82
92
fi
83
93
84
94
BASHUNIT_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
86
100
TAG=" $LATEST_BASHUNIT_VERSION "
87
101
88
102
cd " $( dirname " $0 " ) "
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " bashunit-docs" ,
3
- "version" : " 0.22.2 " ,
4
- "checksum" : " b52b602de0f1d345cc99b07506840d6beaa5c64d1e631e7243866d7e3273f439 " ,
3
+ "version" : " 0.22.3 " ,
4
+ "checksum" : " efae498584b4f11cd05e4acbba586009e391259fdbfac391844b75b7552e00d7 " ,
5
5
"description" : " Docs for bashunit a simple testing library for bash scripts" ,
6
6
"main" : " index.js" ,
7
7
"repository" :
" [email protected] :TypedDevs/bashunit.git" ,
You can’t perform that action at this time.
0 commit comments