diff options
author | Peter | 2024-11-12 11:22:46 +0000 |
---|---|---|
committer | Peter | 2024-11-12 11:22:46 +0000 |
commit | e22c806d401219fbc6345d5af38b00f7e05e679f (patch) | |
tree | bf07d51adda68268ba7e02325e8d08c88c4cf1c5 /.local/bin/phone-dump | |
parent | 07a1c6d5c96ad7a120328f253146f744df74cfc7 (diff) | |
download | dotfiles-origin/main.tar.gz dotfiles-origin/main.tar.bz2 dotfiles-origin/main.zip |
Replace shebang and add Pictures directoryHEADorigin/mainmain
Diffstat (limited to '.local/bin/phone-dump')
-rwxr-xr-x | .local/bin/phone-dump | 8 |
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 |