View Single Post
  #14 (permalink)  
Old 07-20-2006
Glenn Arndt's Avatar
Glenn Arndt Glenn Arndt is offline
Anomalous Lurker
 

Join Date: Feb 2006
Location: Indianapolis, IN
Posts: 255
The "let 1 == 10" line is not setting 1 equal to 10. It is comparing 1 (the number of files it counted) and 10 (the number of files needed for success). Because 1 != 10, the script exits status 1, which is an error. The unix convention is that "0" is success, and anything else is failure.
Reply With Quote