refactor(bin): icyup.sh now generates a random md5
Anirudh icyph0x@pm.me
Wed, 27 Jun 2018 10:33:14 +0530
1 files changed,
10 insertions(+),
4 deletions(-)
jump to
M
bin/icyup.sh
→
bin/icyup.sh
@@ -1,9 +1,15 @@
-#!/bin/bash +#!/bin/zsh + +hash=`md5sum <<EOF +$RANDOM +EOF` + +fn=`echo $hash | awk '// { print $1 }'` if [ "$1" != "" ]; then - file=$(basename $1) - scp $1 file boop:www/upload/ - echo "https://xix.ph0x.me/$file" + echo $fn + scp $1 boop:www/upload/$fn + echo "https://xix.ph0x.me/$fn" else echo "no path specified :v" fi