scripts

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

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

Delete temporary file on ^C

Diffstat:
itor | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/itor b/itor @@ -11,6 +11,9 @@ rdir=$(test -n "$RDIR" && echo "$RDIR" || echo torrents) ldir=$(test -n "$LDIR" && echo "$LDIR" || echo $HOME/torrents) listing=$(mktemp) + +trap 'rm -f $listing; exit 0' 2 + ssh $host "ls $rdir" > $listing idx=0 while read f; do