From d8e6a92e7cd83380448f73911fff4f5fff33ef01 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sun, 29 Dec 2019 19:41:17 -0800 Subject: [PATCH] toolchain/wrapper.sh: Replace read with read -r Without -r, backslashes would get mangled. Found with shellcheck. Signed-off-by: Rosen Penev --- target/toolchain/files/wrapper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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