puppetlabs/Razor-Microkernel — pull request #20 by sayotte (2012-11-20 00:11:02+00:00)
Title: build-bundle-file.sh configuration knobs/file, bugfixes

Added the ability to specify a configuration file to pull resource URLs and other options from. Added an example config file demonstrating all the variables which can be specified. Precedence is like so:

command-line >> config-file >> environment variables >> defaults

Also changed build-bundle-file.sh to explicitly use bash; it was using /bin/sh, which on some systems happens to *be* bash, and thus was masking the use of bash-specific features. After making that change I fixed a few bugs of this type: if [ -z $somevar ], since that fails to compile, by making them look like this: if [[ -z $somevar ]] since that is a "smart" feature of bash.