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