Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Nice. You might consider adding a check for the existence of a local cache file. If it doesn't exist, then try online. i.e.

   if [ ! -s "${cache_dir}"/"$1" ] ; then ...


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: