@@ -96,9 +96,9 @@ main() {
|
||||
printf 'Working in:\n'
|
||||
printf ' - %s\n' "${cfg_workdir[@]}"
|
||||
|
||||
while read -r d f; do
|
||||
upload "$d$f" "$@" &
|
||||
done < <( inotifywait -m --format '%w %f' -e close_write "${cfg_workdir[@]}" )
|
||||
while read -r f; do
|
||||
upload "$f" "$@" &
|
||||
done < <( inotifywait -m --format '%w%f' -e close_write "${cfg_workdir[@]}" )
|
||||
}
|
||||
|
||||
main "$@"
|
||||
|
||||
Reference in New Issue
Block a user