As bash is only used as helper, the scope of bash functions is to optimize things around the installation scripts and helpers for Perl and PHP.
Basically, all features work in that way:
- In your bash script, you source LoxBerry's SDK function script. All the SDK scripts are located at
- LoxBerry's function script initializes functions, variables etc. in the scope of your script. Parameters tothe SDK script may be given before by defining global vars in your script.
- You call LoxBerry's functions in your script.
Please see the documentation for examples how to implement each SDK script.
Generally, in bash scripts you should make use of the global system environment variables instead of hardcoding pathes.