Skip to content

Tag: scripting

Bash scripting check condition

I’m new to bash scripting and trying to write the following simple And this works as expected. But if I delete echo “some string’ it prints nothing: Why? Why does deleting echo some_string right after the condition checking breaks the function? Answer It is because the if-condition is execut…