From aa909ab9678521579093ea1d1bd65adc8953125d Mon Sep 17 00:00:00 2001 From: Konstantinos Pachnis Date: Wed, 20 Jun 2018 12:26:57 +0300 Subject: [PATCH] Make variable local --- git-release | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-release b/git-release index fc79f2b..40481c6 100644 --- a/git-release +++ b/git-release @@ -95,7 +95,7 @@ list_release_numbers() { auto_release_number() { checks - version="$(git tag -l | sort -n -r -t. -k1,1 -k2,2 -k3,3 | head -n 1)" + local version="$(git tag -l | sort -n -r -t. -k1,1 -k2,2 -k3,3 | head -n 1)" if echo "$version" | grep [0-9].[0-9].[0-9] >/dev/null; then case $version_type in -- 2.45.2