Releases: niieani/bash-oo-framework
Releases · niieani/bash-oo-framework
2.1
2.0
1.0 release
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 ##