From 38d0f0846d2573b59e6c3b5ca7822d8fea1d1d9b Mon Sep 17 00:00:00 2001 From: shmibs Date: Sun, 19 Jul 2015 13:04:31 -0700 Subject: fix send --- .zshrc-linux | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to '.zshrc-linux') diff --git a/.zshrc-linux b/.zshrc-linux index 6e295a4..bf95ebe 100644 --- a/.zshrc-linux +++ b/.zshrc-linux @@ -60,9 +60,10 @@ scap() { # quickly send a file to hosted tmp dir send() { - if [ "$1" ]; then + if [[ "$1" ]]; then scp $@ shmibbles.me:http/tmp/ - if [ $? -eq 0 ]; then + ssh shmibbles.me "cd http/tmp; chmod o+r '$@'" + if [[ $? -eq 0 ]]; then for name in "$@" do name=$(echo "http://shmibbles.me/tmp/$(basename $name)"\ -- cgit v1.2.3