From e22c806d401219fbc6345d5af38b00f7e05e679f Mon Sep 17 00:00:00 2001 From: Peter Date: Tue, 12 Nov 2024 11:22:46 +0000 Subject: Replace shebang and add Pictures directory --- .local/bin/phone-dump | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to '.local/bin/phone-dump') 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 -- cgit v1.2.3