From 27a7004fb75d97c39be0faf66b6d514d6cc45775 Mon Sep 17 00:00:00 2001 From: NineInchNade Date: Tue, 10 Nov 2015 15:08:30 +0100 Subject: add checkMissingLink --- bin/checkMissingLink | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 bin/checkMissingLink (limited to 'bin/checkMissingLink') diff --git a/bin/checkMissingLink b/bin/checkMissingLink new file mode 100755 index 0000000..f1ea0df --- /dev/null +++ b/bin/checkMissingLink @@ -0,0 +1,15 @@ +#!/bin/sh + +file=$1 +id=$(echo "$file" | sed 's/.*\(.\{11\}\)\.ogg/\1/') + +#Wattie_Green_-_Dark_eyes-gdlFy3dRVck.ogg + +if [ $id = '' ]; then + echo 'no id' + exit 23 +fi + +if ! grep -q -- "$id#" links; then + echo $file +fi \ No newline at end of file -- cgit v1.2.3