]> 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)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 17 Jan 2021 11:27:59 +0000 (11:27 +0000)
commit0453acbbd45604537090ec7a3295b34309e6eecb
treebbfb79afff0a0bf249c533ebc74cae6fab3d1342
parentedb7098e9e0a8978568a45057c1c3ad2c6cacd67
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>
meta/files/toolchain-shar-extract.sh