timer for markslider, more verbose whenfilech..
This commit is contained in:
@@ -185,13 +185,14 @@ function whenfilechanges() {
|
||||
do ntime[$i]=$( stat -c %Z "${fname[$i]}" )
|
||||
[ "${ntime[$i]}" -ne "${otime[$i]}" ] && {
|
||||
echo "${fname[$i]} changed:"
|
||||
eval "$@"
|
||||
otime[$i]=$( stat -c %Z "${fname[$i]}" )
|
||||
eval "$@"
|
||||
echo -n "Waiting for file changes... "
|
||||
date
|
||||
}
|
||||
done
|
||||
read -t 2 forced
|
||||
echo -ne Waiting.. $( date )\\r
|
||||
[ $? -eq 0 ] && eval "$@"
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user