How to exit a BASH script
Greetings,
I have a script that checks for the existence of a file and, if this file doesn't exist, I want the script to output a message to the screen then terminate. This is all fairly simple and I've got a solution that works, only problem is, when the script terminates, it closes my PuTTY session! Below is the code I'm using: Quote:
Thanks in advance! |
Quote:
Code:
# sourcing: |
You're absolutely correct! Thanks
|
All times are GMT -5. The time now is 05:57 AM. |