summaryrefslogtreecommitdiffstats
path: root/bin/checkMissingLink
blob: 4b53f79b1ae74efb0ee978a5f8d0d18987c80ed8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

file=$1
id=$(echo "$file" | sed 's/.*\(.\{11\}\)\.ogg/\1/')

if [ $id = '' ]; then
	echo 'no id'
	exit 23
fi

if ! grep -q -- "$id#" links; then
	echo $file
fi