diff options
Diffstat (limited to 'import/photobox_import2.sh')
-rwxr-xr-x | import/photobox_import2.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/import/photobox_import2.sh b/import/photobox_import2.sh index 8108bcc..a189405 100755 --- a/import/photobox_import2.sh +++ b/import/photobox_import2.sh @@ -23,9 +23,10 @@ readonly pending_path="$(make_unique $pending_root/$(date +%Y-%m-%d))" ( flock -x -w 120 200 || exit 1 - if [[ ! -d "$backup_path/DCIM" && \ + if [[ ! -d "$backup_path/DCIM" || \ -z $(find "$backup_path/DCIM" -iregex "$photoregex" -print -quit | head) ]]; then echo "No photos found on $input" + umount "${input}" exit 0 fi |