Skip to content

Commit f33e636

Browse files
add install.sh script
1 parent 0bd2a08 commit f33e636

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

install.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
echo "downloading bash_unit"
4+
current_working_dir=$PWD
5+
tarball_url=$(curl -s https://api.github.com/repos/guillaumevincent/bash_unit/releases | grep tarball_url | head -n 1 | cut -d '"' -f 4)
6+
tmp_dir=`mktemp -d 2>/dev/null || mktemp -d -t 'tmpdir'`
7+
cd $tmp_dir
8+
curl -Ls $tarball_url | tar -xz
9+
find $tmp_dir -type f -name "bash_unit" | xargs cp -t $current_working_dir
10+
rm -rf $tmpdir
11+
echo "thank you for downloading bash_unit, you can now run ./bash_unit"

0 commit comments

Comments
 (0)