#!/bin/sh if [ "$1" != "" ] ; then export BTQUEUE_BASE=$1 else export BTQUEUE_BASE=$HOME/new/btqueue fi mkdir -p $BTQUEUE_BASE/{complete,failed,queue,tmp} [ -f $BTQUEUE_BASE/settings ] || echo "max-downloads 1" >$BTQUEUE_BASE/settings unset http_proxy cd ~/Code/misccode/btqueue $BTQUEUE_DEBUG ./btqueue-run