0

I have shell script where i have set -e in first line and I am checking for binary in path using where kubectl. If kubectl is not present on system then this command returns non-zero error hence entire script break. I want to silence functionality of set -e while running where command. Is there a way I can protect script from exiting or in other words ignore return code of selective command in script?

prashant
  • 2,808
  • 5
  • 26
  • 41

0 Answers0