on Airdrop Download trigger

This commit is contained in:
Gabriel Radureau
2025-10-09 23:46:41 +02:00
commit bfb0c4cb18
10 changed files with 204 additions and 0 deletions

18
trigger/onAirdropDownload.sh Executable file
View File

@@ -0,0 +1,18 @@
#! /bin/bash
set -eux
date
echo `date` >> /tmp/heho
find ${HOME}/Downloads
mkdir -p ${HOME}/Documents/.DanceVideos
find ${HOME}/Documents/.DanceVideos
DLDIR=${HOME}/Downloads
DESTDIR=${HOME}/Documents/.DanceVideos
DL_VIDEOS=`find $DLDIR -type f -iname "*.mp4" -or -iname "*.mov" -maxdepth 1`
[ -z "$DL_VIDEOS" ] || {
for v in "$DL_VIDEOS"; do
echo `basename "$v"` >> /tmp/foo
done
}