From d064ca156ce06c21fb7b617c58fb90ea17e4ceca Mon Sep 17 00:00:00 2001 From: David Zisky Date: Fri, 7 Feb 2020 19:10:34 +0100 Subject: [PATCH] Update copy-certs.sh (#44) Small redesign of if statement --- quick-install/copy-certs.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/quick-install/copy-certs.sh b/quick-install/copy-certs.sh index 0c7ee10a..d26dcaea 100755 --- a/quick-install/copy-certs.sh +++ b/quick-install/copy-certs.sh @@ -3,10 +3,11 @@ set -eo pipefail unset CDPATH IFS=$'\n\t' -namespace='kube-public' -if [ ! -z "$1" ] +if [ -n "$1" ] then - namespace=$1 + namespace=$1 +else + namespace='kube-public' fi echo