Skip to content

Releases: niieani/bash-oo-framework

2.1

08 Jul 12:41
Compare
Choose a tag to compare
fix(tryCatch): make it possible to exit with a non-zero status code (…

2.0

01 Jan 13:47
Compare
Choose a tag to compare
2.0
Fix more unbound variables (#34)

1.0 release

06 Dec 19:52
Compare
Choose a tag to compare

First stable release.

There's a great new way to include the framework in your scripts.
If you don't mind a slightly slower startup of your script and know that an internet connection will be available at the time of execution, you can put this one-liner in front of your script to include the framework:

#!/usr/bin/env bash

source <(VERSION=1.0.0; URL="https://github.com/niieani/bash-oo-framework/releases/download/$VERSION/oo-framework.sh"; RETRIES=3; hash curl 2>/dev/null && curl -sL --retry $RETRIES "$URL" || wget -t $RETRIES -O - -o /dev/null "$URL" || echo "echo 'An error occured while downloading the framework.' && exit 1")

## your code ##