Преглед изворни кода

sftp-into-eye: take filenames from stdin

master
Ivan Kozik пре 1 месец
родитељ
комит
408decf011
1 измењених фајлова са 3 додато и 3 уклоњено
  1. +3
    -3
      sftp-into-eye

+ 3
- 3
sftp-into-eye Прегледај датотеку

@@ -14,10 +14,10 @@ wait-until-jobs-below() {
done
}

# e.g. ~/stash/YouTube/whitehouse
root=$1
# provide as stdin the output of e.g.
# es x find -t f -- ~/stash/YouTube | take-wanted-ids ~/dead-video-ids | rg '\.(mp4|webm|flv|video)$'

es x find -t f -- "$root" | take-wanted-ids ~/dead-video-ids | rg '\.(mp4|webm|flv|video)$' | while read i; do
while read i; do
echo $i
eye_path=$(path-to-eye-path "$i" | sed -r "s,$HOME/stash/,,g")
file_id=$(es x info -- "$i" | jq .id)


Loading…
Откажи
Сачувај