added personal scripts
This commit is contained in:
16
shell_scripts/wiki_untrusted_edits
Executable file
16
shell_scripts/wiki_untrusted_edits
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
# TODO
|
||||
# BUG! works with . but not with full path
|
||||
EXP_ARGS=1
|
||||
LIST=~/.wiki_trusted_authors
|
||||
if [ "$1" = "--help" -o "$1" = "-h" -o $# -lt $EXP_ARGS ]
|
||||
then
|
||||
echo "Search for non trust edits in PmWiki"
|
||||
echo "Usage: $0 PmWikiPath"
|
||||
echo "(note that the list of trusted authors is in $LIST)"
|
||||
exit
|
||||
fi
|
||||
grep author: $1/* | grep -v diff: | grep -v -f $LIST
|
||||
|
||||
# seems to be more interesting to delegate that to the user
|
||||
#| sed -e "s/:.*//" | sort | uniq
|
||||
Reference in New Issue
Block a user