From: Felipe Contreras Date: Mon, 24 Apr 2023 16:50:41 GMT Subject: [PATCH v2 15/15] version-gen: get rid of GVF variable Message-ID: <20230424165041.25180-16-felipe.contreras@gmail.com> In-Reply-To: <20230424165041.25180-1-felipe.contreras@gmail.com> There's not much point in a variable which is never going to change and doesn't really add any readability. Signed-off-by: Felipe Contreras --- GIT-VERSION-GEN | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/GIT-VERSION-GEN b/GIT-VERSION-GEN index a1c50cb06b..3d30ce74af 100755 --- a/GIT-VERSION-GEN +++ b/GIT-VERSION-GEN @@ -1,6 +1,5 @@ #!/bin/sh -GVF=GIT-VERSION-FILE DEF_VER=2.40.GIT get_version () { @@ -15,5 +14,5 @@ VN=$(get_version) NEW="GIT_VERSION = $VN" -test -r $GVF && test "$NEW" = "$(cat $GVF)" && exit -echo "$NEW" | tee $GVF >&2 +test -r GIT-VERSION-FILE && test "$NEW" = "$(cat GIT-VERSION-FILE)" && exit +echo "$NEW" | tee GIT-VERSION-FILE >&2 -- 2.40.0+fc1