Skip to content

Commit 761c30c

Browse files
committed
Use install.sh from bashunit
1 parent 1d03e49 commit 761c30c

File tree

1 file changed

+4
-23
lines changed

1 file changed

+4
-23
lines changed

example-bashunit/install.sh

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,7 @@
11
#!/bin/bash
22

3-
cd "$(dirname "$0")"
4-
rm -rf lib
5-
mkdir lib
6-
cd lib
3+
curl -o _install.sh https://raw.githubusercontent.com/TypedDevs/bashunit/main/install.sh
74

8-
TAG=${1-main}
9-
10-
if [[ $TAG == main ]]; then
11-
echo "> Using main branch"
12-
git clone git@github.com:TypedDevs/bashunit.git temp_bashunit
13-
else
14-
echo "> Using a concrete tag '$TAG'"
15-
curl -L -O -J https://github.com/TypedDevs/bashunit/archive/refs/tags/0.7.0.tar.gz
16-
tar -zxvf bashunit-0.7.0.tar.gz
17-
cp bashunit-0.7.0/bin/bashunit temp_bashunit
18-
rm bashunit-0.7.0.tar.gz
19-
fi
20-
21-
## Common
22-
cd temp_bashunit
23-
./install.sh
24-
cd ..
25-
cp temp_bashunit/bin/bashunit bashunit
26-
rm -rf temp_bashunit
5+
chmod +x _install.sh
6+
./_install.sh
7+
rm _install.sh

0 commit comments

Comments
 (0)