julm/pull: support SD card 6365-3561
authorJulien Moutinho <julm@sourcephile.fr>
Sat, 19 Oct 2024 11:06:40 +0000 (13:06 +0200)
committerJulien Moutinho <julm@sourcephile.fr>
Sat, 19 Oct 2024 11:06:40 +0000 (13:06 +0200)
julm/pull.sh

index e5d65b0e94571857791404f472d27a835dc055fc..05d55e6a639cca1ce70ded0a943c99eb29eb778e 100755 (executable)
@@ -38,10 +38,14 @@ then
 
 fi
 
+gio mount -l | grep file:///run/media/"$USER"/6365-3561 ||
+gio mount file:///run/media/"$USER"/6365-3561 || true
+
 mkdir -p "$year"/src
 for month in {01..12}; do
   for src in \
-    /run/media/julm/disk/DCIM/ \
+    /run/media/"$USER"/disk/DCIM/ \
+    /run/media/"$USER"/6365-3561/DCIM/ \
     /run/user/"$uid"/gvfs/mtp:host="$host"/"Espace de stockage interne partagé"/DCIM/Camera/ \
     /run/user/"$uid"/gvfs/mtp:host="$host"/"Carte SD SanDisk"/DCIM/Camera/
   do