Created
May 30, 2014 21:45
-
-
Save sarcilav/7fdabfbf591aef102936 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
function pulls2 { | |
bopen=0 | |
while getopts ":o" Option | |
do | |
case $Option in | |
o ) bopen=1 ;; | |
esac | |
done | |
echo $bopen | |
if [ $bopen -eq 1 ]; then | |
echo 'hub pull-request | open' | |
else | |
echo 'hub pull-request' | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment