Skip to content

Commit

Permalink
get-jpegs: Get card number like get-raw
Browse files Browse the repository at this point in the history
  • Loading branch information
cdown committed May 9, 2024
1 parent 4ad55cc commit e605f7e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/get-jpegs
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#!/bin/bash -ex

in_dir=/mnt/sdcard/DCIM
out_dir=.
out_dir=jpg/${1?}

shopt -s globstar nullglob

mkdir -p "$out_dir"

for raw_dir in "$in_dir"/**/; do
if [[ "$in_dir/" == "$raw_dir" ]]; then
continue
Expand Down

0 comments on commit e605f7e

Please sign in to comment.