]> 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)
committerSteve Sakoman <steve@sakoman.com>
Tue, 19 Jan 2021 14:22:10 +0000 (04:22 -1000)
commit84bdeabd40183006d136f0ae416efa5f71e3557b
tree2b1c7a1717a486612d43a962dc2d5c8fcce68894
parentd5cb96e3b5501b7349d075c47636902c9ce1c49c
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: Steve Sakoman <steve@sakoman.com>
meta/files/toolchain-shar-extract.sh