diff --git a/scripts/examples/imxlinux_example.sh b/scripts/examples/imxlinux_example.sh index f484283056e892..ecae34f8ca93d2 100755 --- a/scripts/examples/imxlinux_example.sh +++ b/scripts/examples/imxlinux_example.sh @@ -30,7 +30,7 @@ if [ "$IMX_SDK_ROOT" = "" -o ! -d "$IMX_SDK_ROOT" ]; then fi env -entries=(`echo $(ls "$IMX_SDK_ROOT") | tr ' ' ' '`) +entries=("$(echo "$(ls "$IMX_SDK_ROOT")" | tr ' ' ' ')") for entry in "${entries[@]}"; do if [ "$(echo "$entry" | grep -E "^environment-setup-")" != "" ]; then env_setup_script=$entry