summaryrefslogtreecommitdiffstats
path: root/.local
diff options
context:
space:
mode:
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/phone-dump8
1 files changed, 7 insertions, 1 deletions
diff --git a/.local/bin/phone-dump b/.local/bin/phone-dump
index d2de65d..9343a25 100755
--- a/.local/bin/phone-dump
+++ b/.local/bin/phone-dump
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# variables
phone_remote=phone
@@ -22,6 +22,12 @@ if ping -c 1 "$phone_ip" &>/dev/null; then
else
echo "DCIM Camera directory does not exist, skipping."
fi
+ if [ -d "$directory_temp/Pictures" ]; then
+ echo "Sorting pictures..."
+ phockup "$directory_temp/Pictures" "$destination/" -m
+ else
+ echo "Pictures directory does not exist, skipping."
+ fi
if [ -d "$directory_temp/Pictures/Whatsapp" ]; then
echo "Sorting WhatsApp..."
find "$directory_temp/Pictures/Whatsapp" -name '.nomedia*' -delete