Created
June 16, 2010 17:59
-
-
Save tmking/441042 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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