From: Scott Worley Date: Sun, 19 Jul 2020 16:11:05 +0000 (-0700) Subject: Allow fetching multiple dirs per device X-Git-Url: http://git.scottworley.com/picsort/commitdiff_plain/b8d031015ec55eacf050f89592925a2488d5d4ba?ds=inline;hp=0605a43e45d86c656afcf0e2f1275aed1976b285 Allow fetching multiple dirs per device --- diff --git a/slurp-pics b/slurp-pics index 533c680..0dd4e78 100755 --- a/slurp-pics +++ b/slurp-pics @@ -3,9 +3,9 @@ LEGACY='-oHostKeyAlgorithms=+ssh-dss' sftp=( sftp -v -P 19362 -i .slurp-key -oConnectTimeout=4 $LEGACY ) +seendir="slurp-seen" while read host path;do - outdir="slurp-$host" - seendir="slurp-seen" + outdir="slurp-$host-${path//\//,}" { mkdir -p "$outdir" "$seendir/$outdir" echo "cd $path"