3 ms·
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"
by LinuxBender 8y ago
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 ...