dotfiles/bin/upload_and_copy
2016-02-19 22:56:16 -05:00

9 lines
225 B
Bash
Executable File

#!/bin/bash
set -e
MD5=($(md5sum "$@" | cut -d ' ' -f 1))
fname=$MD5."${1##*.}"
scp -rp "$1" tyrelsouza.com:/var/www/html/screenshots/$fname;
echo https://tyrelsouza.com/screenshots/$fname | xsel --clipboard --input
rm "$1"