Tool for creating self-contained executable multi-file script.
- To install bashball on /bin/bashball
curl -Ls 'https://tinyurl.com/yxlx25wt' | sudo bash
- To customize installation paths and behaviours, see
--help
curl -Ls 'https://tinyurl.com/yxlx25wt' | sudo bash -s -- --help
- Download bashball
- Add
bashball
to/bin
.
bashball main.sh .. <other_scripts> > out.bb
To run simply do bash out.bb
.
bash <(bashball main.sh .. <other_scripts>)
Use bashball -d <file> > <file>.tar
to extract the sources of a bashball script in a tar file.
bashball -e <file.bb>
will open your default editor to edit the compiled source. (editor MUST support tar editing, like ViM)
- There MUST be a file named
main.sh
in the root of the*.bb
file. - Use
source <file>
for internal files (i.e. files in the*.bb
) or. <file>
for local files (i.e. where the*.bb
is being launched from).