Skip to content

Files

Latest commit

author
Layne
May 1, 2013
5c17b65 · May 1, 2013

History

History
20 lines (14 loc) · 420 Bytes

README.md

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