diff options
author | Florian Pritz <f-p@gmx.at> | 2009-02-22 21:56:40 +0100 |
---|---|---|
committer | Florian Pritz <f-p@gmx.at> | 2009-02-22 21:56:40 +0100 |
commit | b5485475de82ac0743c37e3eb0c35e877f7213ff (patch) | |
tree | 23c4a52507a34ece514889b4888d627ec0e38a5c /drop.sh | |
parent | 1978be4439657a04d2e23227f5c66bb7d4124c18 (diff) | |
download | bin-b5485475de82ac0743c37e3eb0c35e877f7213ff.tar.gz bin-b5485475de82ac0743c37e3eb0c35e877f7213ff.tar.xz |
updated
Diffstat (limited to 'drop.sh')
-rwxr-xr-x | drop.sh | 16 |
1 files changed, 11 insertions, 5 deletions
@@ -1,5 +1,11 @@ -#!/bin/sh -if echo "$1" | grep ".torrent$" > /dev/null -then - mv "$1" /mnt/mistral/flo/torrent/watch -fi +#!/bin/bash +for file; do + case $(file -b --mime-type "$file") in + application/x-bittorrent) + mv "$file" /mnt/mistral/flo/torrent/watch + ;; + *) + # nothing + ;; + esac +done |