When writing a script to carry out a particular task, ask yourself what conditions need to be true for this script to run properly.
Sometimes, a script will do something which can potentially fail, and cause a cascade effect or errors, IF the initial conditions were incorrect. It is always a good idea to check for suitable conditions before doing anything in the script…
Read more →