Skip to content

Commit 02c1687

Browse files
author
Sebastiaan Verbeek
authored
fix: modify check empty parameters (#247)
1 parent 03c7eb3 commit 02c1687

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/otomi

+3-3
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ function execute() {
283283
check_sops_file
284284
check_kube_context=0
285285
evaluate_secrets
286-
if [ -n "$@" ]; then
286+
if [ "$@" != '' ]; then
287287
for f in $@; do
288288
echo "Decrypting $f"
289289
drun helm secrets dec ./env/$f >/dev/null
@@ -306,7 +306,7 @@ function execute() {
306306
check_sops_file
307307
check_kube_context=0
308308
evaluate_secrets
309-
if [ -n "$@" ]; then
309+
if [ "$@" != '' ]; then
310310
for f in $@; do
311311
echo "Encrypting $f"
312312
drun helm secrets enc ./env/$f >/dev/null
@@ -349,7 +349,7 @@ function execute() {
349349
drun bin/test.sh
350350
;;
351351
validate-templates)
352-
if [ -n "$@" ]; then
352+
if [ "$@" != '' ]; then
353353
validate_cluster_env
354354
fi
355355
check_kube_context=0

0 commit comments

Comments
 (0)