Skip to content
Snippets Groups Projects
Commit eb828f79 authored by Pavel Zhukov's avatar Pavel Zhukov Committed by Zygmunt Krynicki
Browse files

weston: weston-start fixes for POSIX shell


Fix bashisms to fix weston running under non-bash shells

Signed-off-by: default avatarPavel Zhukov <pavel.zhukov@huawei.com>

Closes: https://git.ostc-eu.org/OSTC/OHOS/meta-ohos/-/issues/139

Upstream-status: Submitted
Message-Id: <16AB6D14465C2628.4493@lists.openembedded.org>
parent fd1fc3b3
No related branches found
No related tags found
No related merge requests found
...@@ -25,10 +25,10 @@ add_openvt_argument() { ...@@ -25,10 +25,10 @@ add_openvt_argument() {
## Add module to --modules argument ## Add module to --modules argument
add_weston_module() { add_weston_module() {
if [[ "x${weston_modules}" == "x" ]]; then if [ -z "${weston_modules}" ]; then
weston_modules="--modules " weston_modules="--modules "
fi; fi;
weston_modules+="${1}," weston_modules="${weston_modules}${1},"
} }
...@@ -74,7 +74,7 @@ if [ -d "$modules_dir" ]; then ...@@ -74,7 +74,7 @@ if [ -d "$modules_dir" ]; then
# process module # process module
. $m . $m
done done
if [[ x"{$weston_modules}" != "x" ]]; then if [ -n "${weston_modules}" ]; then
add_weston_argument "${weston_modules}" add_weston_argument "${weston_modules}"
fi; fi;
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment