mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-04-13 09:59:31 +00:00
setlocalversion: simplify the construction of the short version
With the --short option given, scm_version() prints "+". Just append it. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
This commit is contained in:
parent
f6e09b07cc
commit
992ebfab2a
1 changed files with 1 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue