We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bd2a08 commit f33e636Copy full SHA for f33e636
install.sh
@@ -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