You must be a Linux user, because you seem to think that all shells are Bourne again! (See what I did there?).
Anyhow, that's a nice little script though I'd probably change the hash-bang to point at simple Bourne to make it more portable for those of us who don't use BASH. Thanks for posting your script.