summaryrefslogtreecommitdiff
path: root/refresh.sh
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2021-10-06 15:32:23 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2021-10-06 15:32:23 +0200
commit1c0a1d62484b63c51bb1fc224ce1b53465a27baf (patch)
treef28db7c00c06f55eb52c97861aee2eaafd04af70 /refresh.sh
parentc353c87c511b9d447f39f78826030d15a76b2691 (diff)
Update
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