Commit b1c0c0d8 authored by Andreas Knote's avatar Andreas Knote
Browse files

watch-and-resize: split first resize pass into foreground process

parent 7673f100
#!/usr/bin/env bash
# Resize Images
batch-resize ./assets/images/ ./public/assets/images/
watch-and-resize ./assets/images/ ./public/assets/images/ &
# Serve HCI Site
bundle
bundle update
jekyll serve --host=0.0.0.0 --port=4200 --trace --incremental &
bundle exec jekyll serve --host=0.0.0.0 --port=4200 --trace --incremental &
PIDS[0]=$!
trap "kill ${PIDS[*]}" SIGINT
......
......@@ -3,8 +3,6 @@
source_dir=${1}
target_dir=${2}
batch-resize ${source_dir} ${target_dir}
echo "[watch-and-resize] $source_dir -> $target_dir"
while inotifywait -q -e modify -r ${source_dir}; do
batch-resize ${source_dir} ${target_dir}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment