10 lines
307 B
Bash
Executable File
10 lines
307 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
MD5=($(md5 -q "$@"))
|
|
fname=$MD5."${1##*.}"
|
|
scp -rp "$1" vpsimgs:/var/www/html/screenshots/$fname;
|
|
osascript -e "display notification \"Uploaded $1 to https://tyrelsouza.com/screenshots/$fname\" with title \"Tyrel Upload\""
|
|
echo https://tyrelsouza.com/screenshots/$fname | pbcopy
|
|
rm "$1"
|