mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-22 07:10:19 +00:00
Address review comments
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
parent
7fa8cdd03e
commit
4d31d5ee11
4 changed files with 10 additions and 10 deletions
|
@ -56,11 +56,11 @@ addOrEditKeyValPair() {
|
|||
# Deletes a key from target file
|
||||
#
|
||||
# Example usage:
|
||||
# removeKey "PIHOLE_DNS_1" "/etc/pihole/setupVars.conf"
|
||||
# removeKey "/etc/pihole/setupVars.conf" "PIHOLE_DNS_1"
|
||||
#######################
|
||||
removeKey() {
|
||||
local key="${1}"
|
||||
local file="${2}"
|
||||
local file="${1}"
|
||||
local key="${2}"
|
||||
sed -i "/^${key}/d" "${file}"
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue