#!/bin/bash | |
for f | |
do | |
scp -P PORTOD $f USERED@HOSTOD:/mnt/disk2/Plex/Download/ | |
if [ $? -eq 0 ] | |
then | |
mv $1 ~/.Trash/ | |
/usr/local/bin/terminal-notifier -message "$f" -title "Successful upload" -open "http://TRANSMISSION-OD-URL-JE" | |
else | |
/usr/local/bin/terminal-notifier -message "$f" -title "Error at uploading" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment