Skip to content

Commit 35fba18

Browse files
committed
release: 0.22.3
1 parent 1ed1ca8 commit 35fba18

File tree

4 files changed

+19
-5
lines changed

4 files changed

+19
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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`

bashunit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -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
88
declare -r BASHUNIT_ROOT_DIR="$(dirname "${BASH_SOURCE[0]}")"

install.sh

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
919
function build_and_install_beta() {
1020
echo "> Downloading non-stable version: 'beta'"
1121

@@ -82,7 +92,11 @@ elif [[ $# -eq 2 ]]; then
8292
fi
8393

8494
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
86100
TAG="$LATEST_BASHUNIT_VERSION"
87101

88102
cd "$(dirname "$0")"

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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": "[email protected]:TypedDevs/bashunit.git",

0 commit comments

Comments
 (0)