Skip to content
Snippets Groups Projects
Commit 49cb495c authored by jurgenhaas's avatar jurgenhaas
Browse files

#41 Fix ahoy setup

parent 24a4f149
No related branches found
No related tags found
No related merge requests found
...@@ -191,14 +191,14 @@ function initialSetup { ...@@ -191,14 +191,14 @@ function initialSetup {
function setupAhoy { function setupAhoy {
if [[ ! -f .ahoy.yml ]]; then if [[ ! -f .ahoy.yml ]]; then
echo "ahoyapi: v2" >.ahoy.yml echo "ahoyapi: v2" >.ahoy.yml
echo "commands:" >.ahoy.yml echo "commands:" >>.ahoy.yml
fi fi
EXISTING=$(cat .ahoy.yml | grep "^ changelog:") EXISTING=$(cat .ahoy.yml | grep "^ changelog:")
if [[ ! -n ${EXISTING} ]]; then if [[ -z ${EXISTING} ]]; then
echo " changelog:" >.ahoy.yml echo " changelog:" >>.ahoy.yml
echo " imports:" >.ahoy.yml echo " imports:" >>.ahoy.yml
echo " - /usr/local/bin/.ahoy.changelog.yml" >.ahoy.yml echo " - /usr/local/bin/.ahoy.changelog.yml" >>.ahoy.yml
echo " usage: Changelog tools." >.ahoy.yml echo " usage: Changelog tools." >>.ahoy.yml
fi fi
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment