summaryrefslogtreecommitdiff
path: root/magnet
diff options
context:
space:
mode:
Diffstat (limited to 'magnet')
-rwxr-xr-xmagnet3
1 files changed, 1 insertions, 2 deletions
diff --git a/magnet b/magnet
index b1b20ee..c380cc6 100755
--- a/magnet
+++ b/magnet
@@ -1,7 +1,6 @@
#!/bin/bash
-
-cd ~/z
+cd ~/tmp
[[ "$1" =~ xt=urn:btih:([^&/]+) ]] || exit;
echo "d10:magnet-uri${#1}:${1}e" > "meta-${BASH_REMATCH[1]}.torrent"