all repos — dotfiles @ c1381110abe293315b529da8b942a74ed681115e

my *nix dotfiles

refactor(bin): icyup.sh: md5 + extension
Anirudh icyph0x@pm.me
Thu, 28 Jun 2018 16:30:44 +0530
commit

c1381110abe293315b529da8b942a74ed681115e

parent

98b090c1d2d900f4e5c5c4fba67da179854b8231

1 files changed, 5 insertions(+), 3 deletions(-)

jump to
M bin/icyup.shbin/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