diff --git a/bin/fproc_cache.rc b/bin/fproc_cache.rc index 5a3b0eb..50bcc63 100755 --- a/bin/fproc_cache.rc +++ b/bin/fproc_cache.rc @@ -9,7 +9,7 @@ score=`{{tee $tmpfile || exit 1} | sha1sum} cachedir=/tmp/fproc_cache/$score mkdir -p $cachedir >[2]/dev/null -if(test -f $cachedir/$proc) +if(test -s $cachedir/$proc) cat $cachedir/$proc if not { $proc < $tmpfile | tee $cachedir/$pid