sane-sync-from-iphone: handle the case where /mnt/iphone is hung

This commit is contained in:
2022-10-22 23:35:00 -07:00
parent 2b14648587
commit 3cfe236e90

View File

@@ -5,8 +5,13 @@ set -ex
# make sure the mountpoint exists
if ! (test -e /mnt/iphone)
then
sudo mkdir /mnt/iphone
sudo chown colin:users /mnt/iphone
sudo umount /mnt/iphone || true # maybe the mount hung
if ! (test -e /mnt/iphone)
then
sudo mkdir /mnt/iphone
sudo chown colin:users /mnt/iphone
fi
fi
# make sure the device is mounted