handle multiple files

This commit is contained in:
jsz4n
2024-08-03 19:12:42 +02:00
parent c5104dfbc6
commit f2b3504697
3 changed files with 22 additions and 5 deletions

View File

@@ -12,9 +12,12 @@ esac
echo using $script
$script
slide_files=("./slides.md" ) # if more files are need add them here
echo ${slide_files[@]}
$script ${slide_files[@]}
while [ 1 -eq 1 ]
do
inotifywait ./slides.md
$script
file=$(inotifywait ${slide_files[@]})
$script ${file%%\ *}
done