License update & egrep replacement for hooks
This commit is contained in:
@@ -51,7 +51,7 @@ function writeOutList() {
|
||||
printf "$(echo "$clone" | sed 's#^\.\/##' | sed 's/\/$//') "
|
||||
git config remote.origin.url
|
||||
cd $HOME
|
||||
done | sort | uniq | egrep -iv 'aninix|gitea@localhost|/srv/foundation|homedir' > "$conffile"
|
||||
done | sort | uniq | grep -E -iv 'aninix|gitea@localhost|/srv/foundation|homedir' > "$conffile"
|
||||
exit $?
|
||||
}
|
||||
|
||||
|
@@ -39,7 +39,7 @@ function Usage() {
|
||||
|
||||
# Translate output into CSV format.
|
||||
function machineReadable() {
|
||||
egrep 'After|DNS|Subject:' | sed 's/^\s\+//' | sed 's/Not After : //' | sed 's/Subject: //' | sed 's/DNS://g' | tr '\n' ','
|
||||
grep -E 'After|DNS|Subject:' | sed 's/^\s\+//' | sed 's/Not After : //' | sed 's/Subject: //' | sed 's/DNS://g' | tr '\n' ','
|
||||
echo
|
||||
}
|
||||
|
||||
@@ -88,6 +88,6 @@ elif [ -n "$showserial" ]; then
|
||||
elif [ -n "$dump" ]; then # 2. Parse the object.
|
||||
grep -A 99 BEGIN\ CERTIFICATE
|
||||
else
|
||||
egrep -i "$regex"
|
||||
grep -E -i "$regex"
|
||||
fi) \
|
||||
| (if [ -z "$machinereadable" ]; then cat; else machineReadable; fi)
|
||||
|
@@ -34,7 +34,7 @@ case "$command" in
|
||||
*)
|
||||
echo Usage: $0 '[command]'
|
||||
echo Available commands:
|
||||
egrep '\"\) *$' $0 | cut -f 2 -d '"'
|
||||
grep -E '\"\) *$' $0 | cut -f 2 -d '"'
|
||||
exit 1;
|
||||
;;
|
||||
esac
|
||||
|
Reference in New Issue
Block a user