Updating for egrep

This commit is contained in:
DarkFeather 2023-10-14 13:15:22 -05:00
parent cc12803ecf
commit 51f895639b
Signed by: DarkFeather
GPG Key ID: 1CC1E3F4ED06F296

View File

@ -28,7 +28,7 @@ function getAPIConfigValue() {
# Get the api config value
# param attr: the attribute to look for
# returns: the attribute's value
egrep -A 10 '^\[ API \]$' "$file" | egrep -m 1 '^'"$1"'=' | sed 's/^'"$1"'=//'
grep -A 10 -E '^\[ API \]$' "$file" | grep -m 1 -E '^'"$1"'=' | sed 's/^'"$1"'=//'
}
# Parse arguments