a simple bash script that merges other bash scripts into one with sub commands
./bundle --folder=<target> --dest=<destination>
EX: ./bundle --folder=example/ --dest=example.sh
(note: dest can be ommited and it will default to <folder name>.sh
)
files must end with a blank line lest a line be cut off from the bottom
- merge mutiple bash scripts into a mass of case statments
- include sourced files (by copy pasting them effectively)
A. allow sourced files to source other files B. enforce a source deph limit to prevent infinite loops - skip files prefixed with a
_
so they cannot be directly executed