View Single Post
If the thumb-drive is seen as just another directory in your system, for example, under /Volumes, you might set your script to first check if the directory exists and to simply bail is it doesn't.