defined file attribute to json

This commit is contained in:
gyurix
2024-11-27 12:24:11 +01:00
parent 7eee526bf4
commit 3cedddf5c3

View File

@@ -950,7 +950,8 @@ inotifywait --exclude "\.(swp|tmp)" -m -e CREATE,CLOSE_WRITE,DELETE,MOVED_TO -r
if [ "${op}" == "CLOSE_WRITE,CLOSE" ]; then
echo "new file created: $file"
B64_JSON=$(cat $DIR/$file | base64 -w0)
execute_task "$file" "$B64_JSON"
TASK=$(echo $file | cut -d '.' -f1)
execute_task "$TASK" "$B64_JSON"
rm -f $dir/$file
fi
done