Skip to content

Instantly share code, notes, and snippets.

@dmerrick
Created September 24, 2015 23:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmerrick/371efe645fcb84759399 to your computer and use it in GitHub Desktop.
Save dmerrick/371efe645fcb84759399 to your computer and use it in GitHub Desktop.
#!/bin/bash
# wrapper script to include required ENV variables
# set these if the variable is not already set
# c.p. http://stackoverflow.com/a/11686779
export EXAMPLE_INT="${EXAMPLE_INT:=5}"
export EXAMPLE_STRING="${EXAMPLE_STRING:=potatoes}"
# actually run the binary
./bin/binary-name $*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment