diff --git a/qcd_function b/qcd_function index e6a256c..0a7418f 100644 --- a/qcd_function +++ b/qcd_function @@ -96,7 +96,7 @@ function whenfilechanges() { do ntime=$( stat -c %Z "$fname" ) [ "$ntime" -ne "$otime" ] && { eval "$@" - otime="$ntime" + otime=$( stat -c %Z "$fname" ) } sleep 2