Skip to content

Instantly share code, notes, and snippets.

@tmking
Created June 16, 2010 17:59
Show Gist options
  • Save tmking/441042 to your computer and use it in GitHub Desktop.
Save tmking/441042 to your computer and use it in GitHub Desktop.
#!/bin/bash
while [ "$*" ]; do
case $1 in
-pre*)
XXX_PRE_ARGS=( $XXX_PRE_ARGS "$2" )
;;
-post*)
XXX_POST_ARGS=( $XXX_POST_ARGS "$2" )
;;
esac
shift 2
done
echo $XXX_PRE_ARGS something $XXX_POST_ARGS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment