From ca1dfda799ee14bbbec763ac4d6f0f17e1414f93 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 13 Jun 2022 19:13:45 +0200 Subject: Adding quotes arround some variables in dehydrated-tools to prevent globbing and word splitting. Signed-off-by: Daniel Baumann --- dehydrated/share/hooks/exit_hook.service-reload | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dehydrated/share') diff --git a/dehydrated/share/hooks/exit_hook.service-reload b/dehydrated/share/hooks/exit_hook.service-reload index 060f81a..486c62f 100755 --- a/dehydrated/share/hooks/exit_hook.service-reload +++ b/dehydrated/share/hooks/exit_hook.service-reload @@ -27,11 +27,11 @@ echo " + Reloading services..." for SERVICE in ${SERVICES} do - if service ${SERVICE} status > /dev/null 2>&1 + if service "${SERVICE}" status > /dev/null 2>&1 then echo -n " + ${SERVICE}:" - service ${SERVICE} reload || service ${SERVICE} restart + service "${SERVICE}" reload || service "${SERVICE}" restart echo " done." fi @@ -48,7 +48,7 @@ then for NUMBER in $(seq 1 "${NUMBER}") do echo -n " #${NUMBER}" - service kresd@${NUMBER} restart + service kresd@"${NUMBER}" restart done echo " done." -- cgit v1.2.3