helm contains check for existence of chart Usage if [[ $(helm contains ${CHART_NAME}) = "true" ]]; then echo "exists" else echo "nope" fi And helm args are used as expected if [[ $(helm contains ${CHART_NAME} -n ${NOT_DEFAULT_NAMESPACE}) = "true" ]]; then echo "exists" fi Install helm plugin install https://github.com/nhomble/helm-contains