3 mkdir -p $HOME/photos/s40
5 cd $HOME/photos/s40 || exit 1
7 LIST=`gphoto2 --port usb -L 2> /dev/null | grep '^#' | awk '{print $2}'`
9 if [ -z "$LIST" ]; then
22 if [ $n2 -eq $n1 ]; then
28 if [ $n2 -ge $n1 ]; then
29 gphoto2 --port usb -p $n1-$n2
32 echo -n 'delete photos? [y/N] '
34 if [ "$ans" = y ]; then