mirror of
https://github.com/levogevo/ffmpeg-builder.git
synced 2026-01-15 10:56:17 +00:00
16 lines
344 B
Bash
Executable File
16 lines
344 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
base="$(dirname "$(readlink -f "$0")")"
|
|
|
|
inotifywait -m -r \
|
|
-e close_write \
|
|
-e moved_to \
|
|
--format '%w%f' \
|
|
"${base}/lib" \
|
|
"${base}/scripts" \
|
|
"${base}/main.sh" | while read -r file; do
|
|
if [[ -f $file && $file =~ .sh ]]; then
|
|
shfmt --indent 4 --write --simplify "${file}"
|
|
fi
|
|
done
|