Skip to content

Instantly share code, notes, and snippets.

@sarcilav
Created May 30, 2014 21:45
Show Gist options
  • Save sarcilav/7fdabfbf591aef102936 to your computer and use it in GitHub Desktop.
Save sarcilav/7fdabfbf591aef102936 to your computer and use it in GitHub Desktop.
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