summaryrefslogtreecommitdiff
path: root/refresh.sh
diff options
context:
space:
mode:
Diffstat (limited to 'refresh.sh')
-rwxr-xr-xrefresh.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/refresh.sh b/refresh.sh
index 6685cb6..e20e303 100755
--- a/refresh.sh
+++ b/refresh.sh
@@ -6,6 +6,9 @@ projects=${wai}/projects
template=${wai}/template.html
main="projectile"
+# Check if auto enabled
+[ $# -gt 0 ] && { echo -e "$(find ${projects}/ -type f)\n$template" | entr $0; exit 0; }
+
# Clean before
rm -rf $public/projects
rm -rf $public/*.html