on Airdrop Download trigger
This commit is contained in:
18
onAirdropDownload.sh
Executable file
18
onAirdropDownload.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#! /bin/bash
|
||||
set -eux
|
||||
date
|
||||
echo `date` >> /tmp/heho
|
||||
find /Users/gabrielradureau/Downloads
|
||||
mkdir -p /Users/gabrielradureau/Documents/.DanceVideos
|
||||
find /Users/gabrielradureau/Documents/.DanceVideos
|
||||
|
||||
DLDIR=/Users/gabrielradureau/Downloads
|
||||
|
||||
DESTDIR=/Users/gabrielradureau/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
|
||||
}
|
||||
Reference in New Issue
Block a user