diff options
| author | Volpeon <git@volpeon.ink> | 2020-12-21 21:53:39 +0100 | 
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2020-12-21 21:53:39 +0100 | 
| commit | 508229fa011fa0a9c90abe84b04d7d057abb924a (patch) | |
| tree | b5bdaa9ee88e535edd5f0755199da785d506f759 | |
| parent | Added makefile (diff) | |
| download | volpeon.ink-508229fa011fa0a9c90abe84b04d7d057abb924a.tar.gz volpeon.ink-508229fa011fa0a9c90abe84b04d7d057abb924a.tar.bz2 volpeon.ink-508229fa011fa0a9c90abe84b04d7d057abb924a.zip | |
Improved watch scripts
| -rw-r--r-- | content/index.md | 2 | ||||
| -rwxr-xr-x | scripts/watch_content.sh | 9 | ||||
| -rwxr-xr-x | scripts/watch_sass.sh | 9 | 
3 files changed, 13 insertions, 7 deletions
| diff --git a/content/index.md b/content/index.md index 14b1337..f595457 100644 --- a/content/index.md +++ b/content/index.md | |||
| @@ -3,7 +3,7 @@ title: "Index" | |||
| 3 | ismain: true | 3 | ismain: true | 
| 4 | --- | 4 | --- | 
| 5 | 5 | ||
| 6 | # Volpeon's den | 6 | # Volpeon's Den | 
| 7 | 7 | ||
| 8 | Welcome to my website! I'm Volpeon and here's an [inline link](#). | 8 | Welcome to my website! I'm Volpeon and here's an [inline link](#). | 
| 9 | 9 | ||
| diff --git a/scripts/watch_content.sh b/scripts/watch_content.sh index 59d60a4..d2578e1 100755 --- a/scripts/watch_content.sh +++ b/scripts/watch_content.sh | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | #!/bin/bash | 1 | #!/bin/bash | 
| 2 | 2 | ||
| 3 | while inotifywait -r -e close_write content; do | 3 | inotifywait -m -e create -e close_write --format "%f" content \ | 
| 4 | scripts/build_content.sh | 4 | | while read FILENAME | 
| 5 | done | 5 | do | 
| 6 | printf "Change detected: %s\n" "$FILENAME" | ||
| 7 | scripts/build_content.sh | ||
| 8 | done | ||
| diff --git a/scripts/watch_sass.sh b/scripts/watch_sass.sh index 69605dc..e7b2952 100755 --- a/scripts/watch_sass.sh +++ b/scripts/watch_sass.sh | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | #!/bin/bash | 1 | #!/bin/bash | 
| 2 | 2 | ||
| 3 | while inotifywait -r -e close_write assets; do | 3 | inotifywait -m -e create -e close_write --format "%f" assets \ | 
| 4 | scripts/build_sass.sh | 4 | | while read FILENAME | 
| 5 | done | 5 | do | 
| 6 | printf "Change detected: %s\n" "$FILENAME" | ||
| 7 | scripts/build_sass.sh | ||
| 8 | done | ||
