basic simili svelte workflow created

This commit is contained in:
asus
2023-10-27 16:11:42 +02:00
parent ac764c469a
commit 8c84ee4073
13 changed files with 482 additions and 878 deletions

16
scripts/build.sh Normal file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
# Define the file to watch
file_to_watch="./"
# Watch for modification events on the file continuously, with a minimum interval of 1s
last_modified=0
while read -r directory events filename; do
current_time=$(date +%s) # Get the current time in seconds
if [ "$current_time" -gt "$last_modified" ]; then
last_modified=$current_time
echo "$current_time - The file $filename was modified."
fi
done < <(inotifywait -q --monitor --event modify "$file_to_watch")