]> git.scottworley.com Git - picsort/blobdiff - slurp-pics
Don't cut off the top of rotated pictures
[picsort] / slurp-pics
index 9602c3f4b7b20d54d6f81c174edc386d752d74b1..68a2b126e69e9e24f5d671fc745863f1c0c8650c 100755 (executable)
@@ -6,7 +6,7 @@ while read host path;do
   {
     mkdir -p "$outdir" "$seendir/$outdir"
     echo "cd $path"
-    sftp -v -P 19362 -i .slurp-key "slurp@$host" <<< "cd $path"$'\n'"ls -1" |
+    sftp -v -P 19362 -i .slurp-key -oConnectTimeout=4 "slurp@$host" <<< "cd $path"$'\n'"ls -1" |
       sed 1,2d |
       while read filename;do
         output_filename="$outdir/${filename/jpg/jpeg}"