diff --git a/scripts/helmcharts/openreplay-cli b/scripts/helmcharts/openreplay-cli index 836f2cf51..684aab3da 100755 --- a/scripts/helmcharts/openreplay-cli +++ b/scripts/helmcharts/openreplay-cli @@ -33,7 +33,10 @@ function exists() { } function err_cd() { - cd "$1" &> /dev/null || (log err not able to cd to "$1" && exit 100) + if ! cd "$1" &> /dev/null ; then + log err not able to cd to "$1" + exit 100 + fi } function log () {