variabletime/watch.sh

15 lines
275 B
Bash
Raw Normal View History

2024-03-16 09:57:27 +01:00
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
PREVIOUS_DIR=$(pwd)
cd $DIR
while true;
do
echo "$(git ls-files src && git ls-files bin/data && echo "assets/template.html")" | entr -d ./rebuild.sh
sleep 1
done
2024-03-16 09:57:27 +01:00
cd $PREVIOUS_DIR