Created
July 14, 2013 17:13
-
-
Save antdking/5994971 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
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