scripts

misc scripts and tools
git clone git://git.2f30.org/scripts
Log | Files | Refs

commit cb6f50cd772bc1b052aec7fe739a9d97f5304366
parent aaf5efae394a9cdc15f0fb786452f02909c3da5d
Author: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
Date:   Wed, 27 Nov 2013 11:21:20 +0000

Use full path for rdir and mkdir ldir if needed

Diffstat:
Mitor | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/itor b/itor @@ -4,12 +4,14 @@ host=sin@amnezia.2f30.org # remote directory - you can override it # with the RDIR environment variable -rdir=$(test -n "$RDIR" && echo "$RDIR" || echo torrents) +rdir=$(test -n "$RDIR" && echo "$RDIR" || echo /home/sin/torrents) # local directory - you can override it # with the LDIR environment variable ldir=$(test -n "$LDIR" && echo "$LDIR" || echo $HOME/torrents) +mkdir -p $ldir + listing=$(mktemp) trap 'rm -f $listing; exit 0' 2