Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pi-hole/pi-hole.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryubiuser <ckoenig@posteo.de>2022-04-05 00:14:10 +0300
committerGitHub <noreply@github.com>2022-04-05 00:14:10 +0300
commit9b4f6c84cd770d333bca1579a8494472bfe5fa62 (patch)
tree77ca3312033d9216556da9883b57ec4d63c1633a
parent4d31d5ee1148f1de8e8608a7bf0fed255136a6e1 (diff)
Minor review comments
-rwxr-xr-xadvanced/Scripts/utils.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/advanced/Scripts/utils.sh b/advanced/Scripts/utils.sh
index 9d80e446..f457427f 100755
--- a/advanced/Scripts/utils.sh
+++ b/advanced/Scripts/utils.sh
@@ -34,7 +34,7 @@ addOrEditKeyValPair() {
local value="${3}"
if [ "${value}" != "" ]; then
- # value has a value, so it is a key pair
+ # value has a value, so it is a key-value pair
if grep -q "^${key}=" "${file}"; then
# Key already exists in file, modify the value
sed -i "/^${key}=/c\\${key}=${value}" "${file}"
@@ -52,7 +52,7 @@ addOrEditKeyValPair() {
}
#######################
-# Takes two arguments key, and file.
+# Takes two arguments file, and key.
# Deletes a key from target file
#
# Example usage: