diff options
author | lassulus <lass@aidsballs.de> | 2016-05-08 09:09:35 +0200 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2016-05-08 09:09:35 +0200 |
commit | c4eed3f706711027484b0297952c4db894ecef96 (patch) | |
tree | aea77b9a0b79435ee641b8dc9deaf2fbc2ecd540 | |
parent | f222bc18b134587537ba39ee4025638bb186e54e (diff) |
checkMissing: don't check subdirectories
-rwxr-xr-x | bin/checkMissing | 2 |
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 |