Skip to content

Commit 7e38655

Browse files
committed
ref: simplify install.sh
1 parent d950df8 commit 7e38655

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

install.sh

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,6 @@ 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-
199
function build_and_install_beta() {
2010
echo "> Downloading non-stable version: 'beta'"
2111

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

9484
BASHUNIT_GIT_REPO="https://github.com/TypedDevs/bashunit"
95-
if is_git_installed; then
96-
LATEST_BASHUNIT_VERSION="$(get_latest_tag "$BASHUNIT_GIT_REPO")"
97-
else
98-
LATEST_BASHUNIT_VERSION="0.29.0"
99-
fi
85+
LATEST_BASHUNIT_VERSION="0.29.0"
10086
TAG="$LATEST_BASHUNIT_VERSION"
10187

10288
cd "$(dirname "$0")"

0 commit comments

Comments
 (0)