License update & egrep replacement for hooks

This commit is contained in:
2023-10-14 12:51:41 -05:00
parent 7ca4227395
commit c106ee874f
6 changed files with 38 additions and 34 deletions

View File

@@ -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 $?
}

View File

@@ -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)

View File

@@ -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