Minor fixes in tools/change-chart-version.sh 30/15430/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 29 Sep 2025 11:16:01 +0000 (13:16 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 30 Sep 2025 07:55:03 +0000 (09:55 +0200)
Change-Id: I5663e5753a6348631fb2edd5579b9b03460df587
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
tools/change-chart-version.sh

index acafe02..78ea883 100755 (executable)
@@ -17,7 +17,7 @@ if [ "$#" -lt 2 ] || [ "$#" -gt 3 ]; then
   echo "Usage: $0 <NEW_VERSION> <GIT_USER> [<GIT_PASSWORD>]"
   echo "    Example: $0 16.0.0 garciadeblas"
   echo "    Example: $0 15.0.7 vegall"
-  echo "When <PASSWORD> is provided, it will be used for git https authentication. Otherwise, ssh authentication will be used."
+  echo "When <GIT_PASSWORD> is provided, it will be used for git https authentication. Otherwise, ssh authentication will be used."
   exit 1
 fi
 
@@ -27,7 +27,7 @@ GIT_PASSWORD="${3:-}"
 
 BRANCH_NAME="v$(echo $NEW_VERSION | grep -oE '[0-9]+\.[0-9]+')"
 
-BASE_FOLDER=$(mktemp -d change-chart-version.XXXXXX)
+BASE_FOLDER=$(mktemp -d --tmpdir change-chart-version.XXXXXX)
 pushd $BASE_FOLDER
 
 if [ -n "$GIT_PASSWORD" ]; then