Commit 992ebfab authored by Masahiro Yamada's avatar Masahiro Yamada

setlocalversion: simplify the construction of the short version

With the --short option given, scm_version() prints "+".
Just append it.
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
Reviewed-by: default avatarNicolas Schier <nicolas@fjasle.eu>
parent f6e09b07
......@@ -121,8 +121,7 @@ elif [ "${LOCALVERSION+set}" != "set" ]; then
#
# If the variable LOCALVERSION is set (including being set
# to an empty string), we don't want to append a plus sign.
scm=$(scm_version --short)
res="$res${scm:++}"
res="$res$(scm_version --short)"
fi
echo "$res"
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