dotfiles/home/bin/upload_and_copy
2023-01-02 00:04:28 -05:00

10 lines
309 B
Bash
Executable File

#!/bin/bash
set -e
MD5=($(md5 -q "$@"))
fname=$MD5."${1##*.}"
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
rm "$1"