Notes2/static/less/loop_make.sh

20 lines
331 B
Bash
Raw Normal View History

2024-11-27 21:41:48 +01:00
#!/bin/bash
while true
do
# inotifywait -q -e MOVE_SELF *less
inotifywait -q -e MODIFY *less
#sleep 0.5
clear
for THEME in $(ls theme-*.less | sed -e 's/^theme-\(.*\)\.less$/\1/'); do
export THEME=$THEME
make -j12
#curl -s http://notes.lan:1371/_ws/css_update
done
echo -e "\n\e[32;1mOK!\e[0m"
sleep 1
clear
done