Skip to content

Instantly share code, notes, and snippets.

@antdking
Created July 14, 2013 17:13
Show Gist options
  • Save antdking/5994971 to your computer and use it in GitHub Desktop.
Save antdking/5994971 to your computer and use it in GitHub Desktop.
parse_remotes () {
if [[ $tag_name = "remote" ]] ; then
eval local $attributes 2>/dev/null #ignore the warnings
if [[ $fetch == ".." ]]; then
echo "the base url of the projects is required"
read -p "[https://github.com/] " fetch
if [[ ! $fetch ]]; then
# TODO: in past experience, users are unreliable. find a way to do this better!
fetch="https://github.com/"
fi
fi
fetch_array[$name]="$fetch"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment