dotfiles/home/bin/upload_and_copy

10 lines
309 B
Plaintext
Raw Normal View History

2016-02-20 03:56:16 +00:00
#!/bin/bash
set -e
MD5=($(md5 -q "$@"))
2016-02-20 03:56:16 +00:00
fname=$MD5."${1##*.}"
2019-02-25 19:42:07 +00:00
scp -rp "$1" vps:/www/tyrelsouza.com/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
2016-02-20 03:56:16 +00:00
rm "$1"