Best way to test bash scripts?
So I've been working on a bash script that just sets up and configures servers for me, it's not too much different from the many already available but I'm doing it more for the learning aspect and the time savings when setting up new servers.
I currently have a dev VPS that I test this on, but it's becoming a pain in the ass to reload the OS, re-run the updated script and wait while it does everything again, only to find out I forgot a damn "\" in front of a "$" somewhere and repeat the process.
It's the whole reloading the OS and re-executing the script that is taking the most time. Even on a local VM, this is troublesome.
Just curious what you guys do when developing bash scripts.
IRC.FREENODE.NET #vpsBoard - Drop by and say, 'Hello'.