mirror of https://github.com/linkerd/linkerd2.git
Use -n instead of ! -z in shell scripts (#4404)
Signed-off-by: Joakim Roubert <joakim.roubert@axis.com>
This commit is contained in:
parent
41ce6ccdbd
commit
0b58a56637
|
@ -136,7 +136,7 @@ check_if_k8s_reachable(){
|
|||
|
||||
remove_l5d_if_exists() {
|
||||
resources=$(kubectl --context=$k8s_context get all,clusterrole,clusterrolebinding,mutatingwebhookconfigurations,validatingwebhookconfigurations,psp,crd -l linkerd.io/control-plane-ns --all-namespaces -oname)
|
||||
if [ ! -z "$resources" ]; then
|
||||
if [ -n "$resources" ]; then
|
||||
printf 'Removing existing l5d installation...'
|
||||
cleanup
|
||||
printf '[ok]\n'
|
||||
|
|
Loading…
Reference in New Issue