From e47738fa75093db3b2b2e5a04e4184bacee63e74 Mon Sep 17 00:00:00 2001 From: Yug Date: Tue, 22 Jun 2021 18:12:23 +0530 Subject: [PATCH] helm: remove function keyword Getting rid of function keyword for two reasons: 1. Defining a function without 'function' keyword is more portable as it is compatible with Bourne/Korn/POSIX scripts 2. To ensure the coding style is same for the file. Signed-off-by: Yug --- scripts/install-helm.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install-helm.sh b/scripts/install-helm.sh index a051060cb..fdd42a12b 100755 --- a/scripts/install-helm.sh +++ b/scripts/install-helm.sh @@ -42,7 +42,7 @@ usage() { echo " " >&2 } -function check_deployment_status() { +check_deployment_status() { LABEL=$1 NAMESPACE=$2 echo "Checking Deployment status for label $LABEL in Namespace $NAMESPACE" @@ -66,7 +66,7 @@ function check_deployment_status() { fi } -function check_daemonset_status() { +check_daemonset_status() { LABEL=$1 NAMESPACE=$2 echo "Checking Daemonset status for label $LABEL in Namespace $NAMESPACE"