mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-27 22:24:11 +08: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
@ -121,8 +121,7 @@ elif [ "${LOCALVERSION+set}" != "set" ]; then
|
|||||||
#
|
#
|
||||||
# If the variable LOCALVERSION is set (including being set
|
# If the variable LOCALVERSION is set (including being set
|
||||||
# to an empty string), we don't want to append a plus sign.
|
# to an empty string), we don't want to append a plus sign.
|
||||||
scm=$(scm_version --short)
|
res="$res$(scm_version --short)"
|
||||||
res="$res${scm:++}"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "$res"
|
echo "$res"
|
||||||
|
Loading…
Reference in New Issue
Block a user