Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 420 Bytes

File metadata and controls

20 lines (14 loc) · 420 Bytes

Bash-Framework

A framework for writing bash scripts. To use, simply put /lib in a directory, and source it in a scripts as follows:

. /path/to/lib/main.lib

Make sure that you use the full path in your scripts, or you may encounter problems.

In order to load a module, use librequire

#!/usr/bin/env bash
. /path/to/lib/main.lib
librequire "my module.lib"
# rest of the script