Skip to content

Instantly share code, notes, and snippets.

@mjrider
Last active January 9, 2017 08:52
Show Gist options
  • Save mjrider/6c47dac05f61b2d73310 to your computer and use it in GitHub Desktop.
Save mjrider/6c47dac05f61b2d73310 to your computer and use it in GitHub Desktop.
#!/bin/bash
NEWARGS=();
for i in "${@}" ; do
NEWARGS+=( "${i}" )
if [ "${i}" = "--components" -o "${i}" = "-c" ] ; then
COMPONENTS=1;
fi
done
if [ -z "${COMPONENTS}" ] ; then
NEWARGS+=( "--components" )
NEWARGS+=( "secrets,pkcs11,gpg" )
fi
exec ${0}.distrib "${NEWARGS[@]}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment