Update event

This commit is contained in:
Andros Fenollosa 2023-04-18 15:32:42 +02:00
parent feee4914d4
commit 5bfc5435cd
2 changed files with 1 additions and 4 deletions

View File

@ -6,9 +6,6 @@ Collection of Bash scripts that execute functionalities in folders.
Folder that watches when new videos are added and optimizes them. Folder that watches when new videos are added and optimizes them.
For security, it **only detects files that have been copied! Ignore moved files**.
### Requirements ### Requirements
- `inotify-tools` - `inotify-tools`

View File

@ -52,7 +52,7 @@ send-notification() {
start() { start() {
# Monitors the selected folder # Monitors the selected folder
inotifywait -m -e create --format '%f' "$FOLDER_ORIGIN" | inotifywait -m -e create,moved_to --format '%f' "$FOLDER_ORIGIN" |
while read -r filename; do while read -r filename; do
# Gets the file extension # Gets the file extension
extension="${filename##*.}" extension="${filename##*.}"