Skip to content

Commit 45df819

Browse files
committed
Shell linting
1 parent 6dd7bc4 commit 45df819

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/functions.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function add_location_configuration {
104104

105105
function add_standalone_configuration {
106106
local domain="${1:?}"
107-
if grep -q $domain "/etc/nginx/conf.d/default.conf"; then
107+
if grep -q "$domain" "/etc/nginx/conf.d/default.conf"; then
108108
# If the domain is already present in nginx's conf, use the location configuration.
109109
add_location_configuration "$domain"
110110
else
@@ -127,7 +127,7 @@ EOF
127127
}
128128

129129
function remove_all_standalone_configurations {
130-
local old_shopt_options=$(shopt -p) # Backup shopt options
130+
local old_shopt_options; old_shopt_options=$(shopt -p) # Backup shopt options
131131
shopt -s nullglob
132132
for file in "/etc/nginx/conf.d/standalone-cert-"*".conf"; do
133133
rm -f "$file"

0 commit comments

Comments
 (0)