sharefile

scripts for quickly sharing data to servers
git clone git://jb55.com/sharefile
Log | Files | Refs | README

commit 011c34068d0ff28c4f99d78de5764671560cfb4b
parent 16de5e40edf332c6642b7ab1e4082c01b3c229a9
Author: William Casarin <bill@casarin.me>
Date:   Wed, 24 Jun 2015 18:35:12 -0700

fix up

Diffstat:
MREADME.md | 4++++
Mshare_last_ss | 4++--
2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md @@ -19,6 +19,10 @@ export SHAREFILE_HOST=me.com:/www/public/share/ export SHAREFILE_URL=http://me.com/share/ + If you want to use `share_last_ss`: + + export SHARE_SS_DIR="$HOME/img/ss" + ## Example Set the upload name diff --git a/share_last_ss b/share_last_ss @@ -1,3 +1,3 @@ #!/usr/bin/env bash -SS_DIR=${SHAREFILE_DIR:-"$HOME/img/ss"} -sharefile -n "$1" "$(ls -1t "$SS_DIR" | head -n1)" +SS_DIR=${SHARE_SS_DIR:-"$HOME/img/ss"} +sharefile -n "$1" "${SHARE_SS_DIR}/$(ls -1t "$SS_DIR" | head -n1)"