Skip to contentSkip to conversation

weston-init: fix variable expansion typo in weston-start

PATCH New Khalifa Rouis 1 participant 1 message Mar 24

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 weston-init: fix variable expansion typo in weston-start

The variable weston_modules was incorrectly enclosed as {$weston_modules} instead of ${weston_modules}.
This typo prevents proper bash variable expansion when checking for and appending Weston module arguments.

This commit corrects the syntax to ensure the modules are properly evaluated.

Fixes c8aa0222ce2b ("weston: wrapper for weston modules argument")
---
 meta/recipes-graphics/wayland/weston-init/weston-start | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-graphics/wayland/weston-init/weston-start +1 -1
index 3b13a0047a..38aa0c6e27 100755
@@ -50,7 +50,7 @@ if [ -d "$modules_dir" ]; then
 
 		# process module
 		. $m
-		if [[ x"{$weston_modules}" != "x" ]]; then
+		if [[ x"${weston_modules}" != "x" ]]; then
 			add_weston_argument "${weston_modules}"
 		fi;
 	done
Signature · 1 line
2.43.0