14 lines
264 B
Bash
14 lines
264 B
Bash
|
#!/bin/bash
|
||
|
shopt -s extglob
|
||
|
|
||
|
last=""
|
||
|
while [ true ]; do
|
||
|
now=$(find coffee less -type f -printf "%T@ %Tx %TX %p\n" | sort -n -r | head -1)
|
||
|
if [ "$last" != "$now" ]; then
|
||
|
make >/dev/null
|
||
|
echo "Updated."
|
||
|
fi
|
||
|
last=$now
|
||
|
sleep 1
|
||
|
done
|