refactor(bin): icyup.sh: md5 + extension
Anirudh icyph0x@pm.me
Thu, 28 Jun 2018 16:30:44 +0530
1 files changed,
5 insertions(+),
3 deletions(-)
jump to
M
bin/icyup.sh
→
bin/icyup.sh
@@ -7,9 +7,11 @@
fn=`echo $hash | awk '// { print $1 }'` if [ "$1" != "" ]; then - echo $fn - scp $1 boop:www/upload/$fn - echo "https://xix.ph0x.me/$fn" + file=$1 + ext="${file##*.}" + fullname="$fn.$ext" + scp $1 boop:www/upload/$fullname + echo "https://xix.ph0x.me/$fullname" else echo "no path specified :v" fi