mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 22:47:56 +00:00
toolchain/wrapper.sh: Replace read with read -r
Without -r, backslashes would get mangled. Found with shellcheck. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
969690b33c
commit
d8e6a92e7c
@ -30,7 +30,7 @@ TARGET_TOOLCHAIN_TRIPLET=${REALNAME_BASE%-*}
|
|||||||
BINARY=${PROGNAME##*-}
|
BINARY=${PROGNAME##*-}
|
||||||
|
|
||||||
# Parse our tool name, splitting it at '-' characters.
|
# Parse our tool name, splitting it at '-' characters.
|
||||||
IFS=- read TOOLCHAIN_ARCH TOOLCHAIN_BUILDROOT TOOLCHAIN_OS TOOLCHAIN_PLATFORM PROGNAME << EOF
|
IFS=- read -r TOOLCHAIN_ARCH TOOLCHAIN_BUILDROOT TOOLCHAIN_OS TOOLCHAIN_PLATFORM PROGNAME << EOF
|
||||||
$REALNAME_BASE
|
$REALNAME_BASE
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user