add up
j3s j3s@c3f.net
Mon, 07 Sep 2020 15:06:25 -0500
1 files changed,
7 insertions(+),
2 deletions(-)
jump to
M
bin/up
→
bin/up
@@ -2,7 +2,12 @@ #!/bin/sh
if [ -n "$1" ]; then scp "$1" trash.j3s.sh:/var/www/trash.j3s.sh/ - echo "https://trash.j3s.sh/$1" + echo "https://trash.j3s.sh/$1" | xclip -sel clip else - echo "spply a file dumbass" + scrot -s -e 'mv $f /tmp/' + for i in $(cd /tmp ; ls *_scrot.png); do + scp "/tmp/$i" trash.j3s.sh:/var/www/trash.j3s.sh/ss/ > /dev/null + echo "https://trash.j3s.sh/ss/$i" | xclip -sel clip + done + rm /tmp/*_scrot.png fi