diff options
author | Rosen Penev <rosenp@gmail.com> | 2019-12-29 19:41:17 -0800 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2020-07-11 13:33:28 +0200 |
commit | d8e6a92e7cd83380448f73911fff4f5fff33ef01 (patch) | |
tree | 0f152bce16156d57487630b98a8d621805ff6d6e /target | |
parent | 969690b33c56fd8f11ba2ce517e4dd70d9acaefa (diff) | |
download | upstream-d8e6a92e7cd83380448f73911fff4f5fff33ef01.tar.gz upstream-d8e6a92e7cd83380448f73911fff4f5fff33ef01.tar.bz2 upstream-d8e6a92e7cd83380448f73911fff4f5fff33ef01.zip |
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>
Diffstat (limited to 'target')
-rwxr-xr-x | target/toolchain/files/wrapper.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/toolchain/files/wrapper.sh b/target/toolchain/files/wrapper.sh index 2cbcc8c1e6..6078d91973 100755 --- a/target/toolchain/files/wrapper.sh +++ b/target/toolchain/files/wrapper.sh @@ -30,7 +30,7 @@ TARGET_TOOLCHAIN_TRIPLET=${REALNAME_BASE%-*} BINARY=${PROGNAME##*-} # 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 EOF |