r.ip #7

Open
DarkFeather wants to merge 10 commits from r.ip into main
Showing only changes of commit 51f895639b - Show all commits

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