2021-03-03 17:59:09 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
install() {
|
|
|
|
if [ -f "bash_unit" ]; then
|
2021-03-04 20:00:10 +00:00
|
|
|
printf "bash_unit test framework exists\n"
|
2021-03-03 17:59:09 +00:00
|
|
|
else
|
2021-03-06 00:21:11 +00:00
|
|
|
curl -o /tmp/install.sh -sLO "$1"
|
2021-03-03 17:59:09 +00:00
|
|
|
chmod +x /tmp/install.sh
|
|
|
|
/tmp/install.sh
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2021-03-06 03:07:09 +00:00
|
|
|
install https://raw.githubusercontent.com/pgrange/bash_unit/master/install.sh
|