Signed-off-by: Felipe Contreras <felipe.contreras@xxxxxxxxx> --- GIT-VERSION-GEN | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/GIT-VERSION-GEN b/GIT-VERSION-GEN index 5b75cb4976..a1c50cb06b 100755 --- a/GIT-VERSION-GEN +++ b/GIT-VERSION-GEN @@ -13,5 +13,7 @@ VN=$(get_version) : "${VN:=$DEF_VER}" -test -r $GVF && test "GIT_VERSION = $VN" = "$(cat $GVF)" && exit -echo "GIT_VERSION = $VN" | tee $GVF >&2 +NEW="GIT_VERSION = $VN" + +test -r $GVF && test "$NEW" = "$(cat $GVF)" && exit +echo "$NEW" | tee $GVF >&2 -- 2.40.0+fc1