Purposely aborting a Unix shell on an if condition

Multi tool use
Multi tool use
The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


Purposely aborting a Unix shell on an if condition



I have created a shell script . I want to abort it on an if condition.



I used exit command for example: exit 1 or exit 42.
It doesn't fail the shell execution.



Please help!!









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

STj4ZHYFOfhxnOmj XazOMwAKxCi,O XB,13F1f1MTKQ
OTTY69cR3nSACOOKlwb4kmr9mIt x266wN951y28QhiOpGeq4qbD,wTlUfH4M7JKdLEM69E,KFP1HwNVEH33b 8nc07pv8RYL,BykP8

Popular posts from this blog

Makefile test if variable is not empty

Will Oldham

Visual Studio Code: How to configure includePath for better IntelliSense results