HowTo: Debug a Shell Script Under Linux or UNIX
|| : will make sure the return code is true, which allows the script to run under -e mode without it breaking due to problems with debug commands. Using -e when debugging may be very helpful. On a related note: You can set variables on a by-call basis lik...