]> code.ossystems Code Review - openembedded-core.git/commitdiff
toolchain-shar-extract.sh: do not allow $ in paths for ext SDK
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 2 Nov 2015 15:51:46 +0000 (15:51 +0000)
committerRobert Yang <liezhi.yang@windriver.com>
Mon, 28 Dec 2015 07:03:15 +0000 (23:03 -0800)
If you put an $ character in the path, SDK installation fails during the
preparation stage, so add this to the disallowed characters.

Fixes [YOCTO #8625].

(From OE-Core master rev: 654f4785f719552f4e78e14a5a901c07d00ce68d)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/files/toolchain-shar-extract.sh

index 6af37b723ad1952116e3f94eec40acc5a05ad45d..35d3c75506ee8ccea0078f1197d4883abda5a6dc 100644 (file)
@@ -101,9 +101,9 @@ fi
 
 if [ "$SDK_EXTENSIBLE" = "1" ]; then
        # We're going to be running the build system, additional restrictions apply
-       if echo "$target_sdk_dir" | grep -q '[+\ @]'; then
+       if echo "$target_sdk_dir" | grep -q '[+\ @$]'; then
                echo "The target directory path ($target_sdk_dir) contains illegal" \
-                    "characters such as spaces, @ or +. Abort!"
+                    "characters such as spaces, @, \$ or +. Abort!"
                exit 1
        fi
 else