Bash is a language that is quite useful for automation no matter what language you write in. The last thing I want to discuss is making a bash script both runnable and sourceable. This makes it so that you can run each function individually. The easiest and most common way to handle an error in bash is through the use of the logical operators && (and) and || (or)
2 Comments
Sort: