Commit ecb18c13 authored by Vitaly Lipatov's avatar Vitaly Lipatov

fix add_changelog (run with empty text)

parent 70596631
...@@ -147,8 +147,7 @@ subst_namever() ...@@ -147,8 +147,7 @@ subst_namever()
add_changelog_helper() add_changelog_helper()
{ {
# don't work sometime? # it is permitted to run with "" DESC
# TODO: fix with $@, single arg?
local DESC="$1" local DESC="$1"
shift shift
local SPECS="$*" local SPECS="$*"
...@@ -156,7 +155,7 @@ add_changelog_helper() ...@@ -156,7 +155,7 @@ add_changelog_helper()
echo "skip changelog fixing without tty" echo "skip changelog fixing without tty"
return 1 return 1
fi fi
[ -z "$DESC$SPEC" ] && fatal "run add_changelog with incorrect args" [ -z "$SPECS" ] && fatal "run add_changelog with incorrect args"
add_changelog -e "$DESC" $SPECS add_changelog -e "$DESC" $SPECS
R=$? R=$?
[ -z "$EDITOR" ] && { echo "skip changelog editing without EDITOR var"; return 1 ; } [ -z "$EDITOR" ] && { echo "skip changelog editing without EDITOR var"; return 1 ; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment