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
bashballto/bin.
bashball main.sh .. <other_scripts> > out.bbTo 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.shin the root of the*.bbfile. - Use
source <file>for internal files (i.e. files in the*.bb) or. <file>for local files (i.e. where the*.bbis being launched from).