summaryrefslogtreecommitdiffstats
path: root/bin/checkMissing
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2016-05-08 09:09:35 +0200
committerlassulus <lass@aidsballs.de>2016-05-08 09:09:35 +0200
commitc4eed3f706711027484b0297952c4db894ecef96 (patch)
treeaea77b9a0b79435ee641b8dc9deaf2fbc2ecd540 /bin/checkMissing
parentf222bc18b134587537ba39ee4025638bb186e54e (diff)
checkMissing: don't check subdirectories
Diffstat (limited to 'bin/checkMissing')
-rwxr-xr-xbin/checkMissing2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/checkMissing b/bin/checkMissing
index 16cb477..f53549c 100755
--- a/bin/checkMissing
+++ b/bin/checkMissing
@@ -4,6 +4,6 @@ uri=$1
musicDir=${musicDir-./}
id=$(echo "$uri" | sed -n 's@^https\?://www\.youtube\.com/watch?v=@@p' | sed 's/#.*$//')
-if ! file=$(find $musicDir | grep -q "[-]$id\\.ogg\$"); then
+if ! file=$(find $musicDir -maxdepth 1 | grep -q "[-]$id\\.ogg\$"); then
echo $uri
fi