diff options
author | shmibs <shmibs@gmail.com> | 2015-07-19 13:04:31 -0700 |
---|---|---|
committer | shmibs <shmibs@gmail.com> | 2015-07-19 13:04:31 -0700 |
commit | 38d0f0846d2573b59e6c3b5ca7822d8fea1d1d9b (patch) | |
tree | 0cdddfdc84b9c9e150a477c790aeceb529d4c900 /.zshrc-linux | |
parent | 591ce1d5e3009247f2417f86bc15555afc098a9d (diff) | |
download | dotfiles-38d0f0846d2573b59e6c3b5ca7822d8fea1d1d9b.tar.gz |
fix send
Diffstat (limited to '.zshrc-linux')
-rw-r--r-- | .zshrc-linux | 5 |
1 files changed, 3 insertions, 2 deletions
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)"\ |