13 lines
242 B
Bash
13 lines
242 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
last=""
|
||
|
while [ true ]; do
|
||
|
now=$(find ./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
|