summaryrefslogtreecommitdiffstats
path: root/bin/yout2ogg
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2015-08-17 16:16:24 +0200
committerlassulus <lass@aidsballs.de>2015-08-17 16:16:24 +0200
commit9218b163f2d8bc965b853ed9fc9e13d15a703456 (patch)
tree8523cca58c0713ec47719b58ede193bad11004a6 /bin/yout2ogg
parent323a66775168b6addb3acddaee0a8ff227ea4bd4 (diff)
make target mutable
Diffstat (limited to 'bin/yout2ogg')
-rwxr-xr-xbin/yout2ogg2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/yout2ogg b/bin/yout2ogg
index b6ab9c9..b316099 100755
--- a/bin/yout2ogg
+++ b/bin/yout2ogg
@@ -1,6 +1,6 @@
#! /bin/sh
set -euf
-target_folder="./music"
+target_folder=${target-./}
uri=$1
id=$(echo "$uri" | sed -n 's@^https\?://www\.youtube\.com/watch?v=@@p' | sed 's/#.*$//')