Frequently Asked Questions

What happens when the repository is offline?

Scripts won’t work. There are exceptions e.g., if the cache holds all required scripts, but in many cases the script just will not run. To avoid such a dependency on a working server you can compile your script into a static script with our module compiler.

What is the difference between module.sh and mdl.sh?

Those are both domains of this project. The website is hosted on module.sh and the code repository on mdl.sh (which is module.sh with the vowels removed). We thought that it would be nice to have a short domain like mdl.sh to be used in the code.

Why do you use cksum and not something more secure like sha256sum?

For POSIX compliance. To our knowledge cksum is part of POSIX and should be available on all POSIX compliant operating sytems. Nevertheless, for your own scripts you can choose something stronger. Just take a quick look at how the validation happens. For example:

module "helloWorld" "https://mdl.sh/hello-world/hello-world-1.0.0.sh" "sha256sum-a37ed750daa549599dba74f66030bd351b41c6ea227c0b1cd596e7efc6a5cada"