From d7af6025fe2de224105ece728689af54c046bb9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Busse?= Date: Wed, 3 Mar 2021 18:59:09 +0100 Subject: [PATCH] Install bash_unit --- install_bash_unit.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 install_bash_unit.sh diff --git a/install_bash_unit.sh b/install_bash_unit.sh new file mode 100644 index 0000000..30b1c3c --- /dev/null +++ b/install_bash_unit.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +install() { + if [ -f "bash_unit" ]; then + printf "bash_unit exists\n" + else + curl -o /tmp/install.sh -sLO $1 + chmod +x /tmp/install.sh + /tmp/install.sh + fi +} + +install https://raw.githubusercontent.com/bbusse/bash_unit/freebsd-compat/install.sh