Don't edit git stuff when running non-interactively
This commit is contained in:
parent
ece968478d
commit
a1de7f10cb
8
abra
8
abra
@ -2209,7 +2209,11 @@ sub_recipe_release() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$abra___no_prompt" = "false" ]; then
|
||||||
git commit -avem "Version $new_version; sync labels" || exit
|
git commit -avem "Version $new_version; sync labels" || exit
|
||||||
|
else
|
||||||
|
git commit -am "Version $new_version; sync labels" || exit
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$abra___no_prompt" = "false" ]; then
|
if [ "$abra___no_prompt" = "false" ]; then
|
||||||
read -rp "Tag this as \`$new_version\`? [y/N]? " choice
|
read -rp "Tag this as \`$new_version\`? [y/N]? " choice
|
||||||
@ -2220,7 +2224,11 @@ sub_recipe_release() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
test "$force" = "true" && git tag -d "$new_version"
|
test "$force" = "true" && git tag -d "$new_version"
|
||||||
|
if [ "$abra___no_prompt" = "false" ]; then
|
||||||
git tag -aem "$latest_version_message" "$new_version"
|
git tag -aem "$latest_version_message" "$new_version"
|
||||||
|
else
|
||||||
|
git tag -am "$latest_version_message" "$new_version"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
#######################################
|
#######################################
|
||||||
|
Reference in New Issue
Block a user