outreachy.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [PATCH] mbuto: quote variable assignments
@ 2022-04-22 15:55 Sevinj Aghayeva
  2022-04-22 16:12 ` Stefano Brivio
  0 siblings, 1 reply; 2+ messages in thread
From: Sevinj Aghayeva @ 2022-04-22 15:55 UTC (permalink / raw)
  To: sbrivio; +Cc: outreachy

Add missing quotes around variable assignments.

Signed-off-by: Sevinj Aghayeva <sevinj.aghayeva@gmail.com>
---
 mbuto | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/mbuto b/mbuto
index 03a4547..88755c5 100755
--- a/mbuto
+++ b/mbuto
@@ -226,10 +226,10 @@ profile_kselftests() {
 	done
 	__colls="$(echo ${__colls} | ${TR} ' ' '\n' | ${SORT} -u)"
 
-	__pattern=$(list_join "${__colls}" '^' '$' '|')
+	__pattern="$(list_join "${__colls}" '^' '$' '|')"
 
-	__skip_targets=$(${AWK} '/^TARGETS/ { print $3}' ${__makefile} | \
-		${EGREP} -v "${__pattern}" | ${TR} '\n' ' ')
+	__skip_targets="$(${AWK} '/^TARGETS/ { print $3}' ${__makefile} | \
+		${EGREP} -v "${__pattern}" | ${TR} '\n' ' ')"
 
 	${MAKE} SKIP_TARGETS="${__skip_targets}" -C ${__testpath} install \
 								 >/dev/null 2>&1
@@ -240,26 +240,26 @@ profile_kselftests() {
 	INSTALL_MOD_PATH="${MODDIR}" ${MAKE} modules_install -j ${THREADS} \
 								>/dev/null
 
-	__files=$(list_join "${__colls}" "${__testpath}" '/config' ' ')
+	__files="$(list_join "${__colls}" "${__testpath}" '/config' ' ')"
 	__mods="$(${CAT} ${__files} 2>/dev/null | \
 			${AWK} -F'=' '/=m/ {print $1}' | ${SORT} -u)"
 
 	KMODS=
 	if [ ! -z "${__mods}" ]; then
-		__pattern=$(list_join "${__mods}" '^obj-\$\(' '\).*.o$' '|')
-		__result=$(${BASENAME} -a -s .o \
+		__pattern="$(list_join "${__mods}" '^obj-\$\(' '\).*.o$' '|')"
+		__result="$(${BASENAME} -a -s .o \
 			   $(${EGREP} -rn --include "*Makefile" ${__pattern} | \
-			     ${AWK} -F'+=' '/+=/ {print $2}'))
-		__find_pattern=$(list_join "${__result}" '-name ' '.ko ' '-o ')
+			     ${AWK} -F'+=' '/+=/ {print $2}'))"
+		__find_pattern="$(list_join "${__result}" '-name ' '.ko ' '-o ')"
 
-		KMODS=$(${FIND} "${MODDIR}" ${__find_pattern} | ${TR} '\n' ' ')
+		KMODS="$(${FIND} "${MODDIR}" ${__find_pattern} | ${TR} '\n' ' ')"
 
 		workers kmod_strip_worker
 
 		KMODS="$(${BASENAME} -a -s .ko ${KMODS})"
 
-		__kmods_needed=$(list_join "${__result}" '' '' ' ')
-		__kmods_missing=$(list_diff "${__kmods_needed}" "${KMODS}")
+		__kmods_needed="$(list_join "${__result}" '' '' ' ')"
+		__kmods_missing="$(list_diff "${__kmods_needed}" "${KMODS}")"
 
 		if [ ! -z "${__kmods_missing}" ]; then
 			notice "WARNING: missing modules: ${__kmods_missing}"
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] mbuto: quote variable assignments
  2022-04-22 15:55 [PATCH] mbuto: quote variable assignments Sevinj Aghayeva
@ 2022-04-22 16:12 ` Stefano Brivio
  0 siblings, 0 replies; 2+ messages in thread
From: Stefano Brivio @ 2022-04-22 16:12 UTC (permalink / raw)
  To: Sevinj Aghayeva; +Cc: outreachy

On Fri, 22 Apr 2022 11:55:59 -0400
Sevinj Aghayeva <sevinj.aghayeva@gmail.com> wrote:

> Add missing quotes around variable assignments.

Applied and pushed together with your previous series, thanks!

-- 
Stefano


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-04-22 16:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-22 15:55 [PATCH] mbuto: quote variable assignments Sevinj Aghayeva
2022-04-22 16:12 ` Stefano Brivio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).