Ok that's the majority of the makepkg clean up complete. I've also added some improved error catching code and a clean_up() function using bash traps (thanks for the idea Aaron :) Andrew