mirror of
https://github.com/tanrax/bash-folders.git
synced 2024-11-14 14:35:42 +01:00
Update event
This commit is contained in:
parent
feee4914d4
commit
5bfc5435cd
@ -6,9 +6,6 @@ Collection of Bash scripts that execute functionalities in folders.
|
||||
|
||||
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
|
||||
|
||||
- `inotify-tools`
|
||||
|
@ -52,7 +52,7 @@ send-notification() {
|
||||
|
||||
start() {
|
||||
# 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
|
||||
# Gets the file extension
|
||||
extension="${filename##*.}"
|
||||
|
Loading…
Reference in New Issue
Block a user