summaryrefslogtreecommitdiffstats
path: root/.local/bin
diff options
context:
space:
mode:
authorPeter2024-11-12 11:22:46 +0000
committerPeter2024-11-12 11:22:46 +0000
commite22c806d401219fbc6345d5af38b00f7e05e679f (patch)
treebf07d51adda68268ba7e02325e8d08c88c4cf1c5 /.local/bin
parent07a1c6d5c96ad7a120328f253146f744df74cfc7 (diff)
downloaddotfiles-e22c806d401219fbc6345d5af38b00f7e05e679f.tar.gz
dotfiles-e22c806d401219fbc6345d5af38b00f7e05e679f.tar.bz2
dotfiles-e22c806d401219fbc6345d5af38b00f7e05e679f.zip
Replace shebang and add Pictures directoryHEADorigin/mainmain
Diffstat (limited to '.local/bin')
-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