]> code.ossystems Code Review - openembedded-core.git/commit
toolchain-shar-extract.sh: Handle special characters in script path
authorAndrey Mozzhuhin <amozzhuhin@yandex.ru>
Sat, 16 Jan 2021 08:18:41 +0000 (11:18 +0300)
committerAnuj Mittal <anuj.mittal@intel.com>
Tue, 19 Jan 2021 03:24:48 +0000 (11:24 +0800)
commit7d17f261347366a8723691a4a2cb77a1d5992d69
treebf1ecd4faf0040a19f7469f1b2989e010b13afd3
parentebc71592b57eba514588693d76057d90f92d6f62
toolchain-shar-extract.sh: Handle special characters in script path

Extracting SDK archive may fail if the script is run using a path with
special characters such as space or asterisk. This is because the shell
interprets such characters after expanding the $0 variable.

Added quotes to all uses of the shell variable $0 to fix this.

Signed-off-by: Andrey Mozzhuhin <amozzhuhin@yandex.ru>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 0453acbbd45604537090ec7a3295b34309e6eecb)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
meta/files/toolchain-shar-extract.sh