Go to file
2024-06-01 19:06:35 -05:00
config.sh Fixed some things 2024-06-01 18:58:09 -05:00
import.sh Fixed some things 2024-06-01 18:58:09 -05:00
logging.sh Had to add the global option to LOG_WATCH_VARS 2024-06-01 19:06:35 -05:00
README.md added example in README 2024-06-01 19:01:26 -05:00

BASH Libs

This is just a simple bash project of bash code that can be loaded in like you would load in a module in python or ruby

How to include them?

All you have to do to begin using the libs is source the imports lib (/path/to/import.sh) and it will handle the logic of sourcing the others relative to itself without the user needing to provide anything.

Example Script:

#!/bin/bash

. /path/to/import.sh
import config

load_config_ini /path/to/config.ini

for KEY in ${!CONFIG[@]}; do
	echo "$KEY = ${CONFIG[$KEY]}"
done