Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
README updated with git flow branch changing
branch=$(git symbolic-ref HEAD 2>/dev/null | sed "s@refs/heads/@@")
sed -i "/\(build status\|documentation\)/{s@\(badges\|commits\|docs.ecocenter.fr/[^/]*\)/[^/]*\([^)]*)\)@\1/$branch\2@g}" $ROOTDIR/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment