Updates for latest inspircd & anope
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
# File: find-bad-ipam
|
||||
#
|
||||
#
|
||||
# Description: This file finds bad IPAM entries in an inventory.
|
||||
#
|
||||
#
|
||||
# Package: AniNIX/Ubiqtorate
|
||||
# Copyright: WTFPL
|
||||
#
|
||||
#
|
||||
# Author: DarkFeather <ircs://aninix.net:6697/DarkFeather>
|
||||
|
||||
file="examples/msn0.yml"
|
||||
@@ -14,7 +14,7 @@ file="examples/msn0.yml"
|
||||
function findBadTerm() {
|
||||
### Check for a term to be duplicated.
|
||||
# param file: the file
|
||||
# param term: the term to search for duplicates
|
||||
# param term: the term to search for duplicates
|
||||
file="$1"
|
||||
term="$2"
|
||||
results="$(grep -i "$term:" "$file" | tr '[[:upper:]]' '[[:lower:]]' | sed 's/\s+'"$term"':\s*//' | sort | uniq -c | grep -vE '^\s+1\s+' )"
|
||||
@@ -26,7 +26,7 @@ function findBadTerm() {
|
||||
fi
|
||||
}
|
||||
|
||||
function Usage() {
|
||||
function Usage() {
|
||||
### Helptext
|
||||
# param retcode: what to return
|
||||
retcode="$1"
|
||||
|
||||
Reference in New Issue
Block a user