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
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