From: Rosen Penev Date: Mon, 30 Dec 2019 03:41:17 +0000 (-0800) Subject: toolchain/wrapper.sh: Replace read with read -r X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d8e6a92e7cd83380448f73911fff4f5fff33ef01;p=openwrt%2Fstaging%2Fansuel.git toolchain/wrapper.sh: Replace read with read -r Without -r, backslashes would get mangled. Found with shellcheck. Signed-off-by: Rosen Penev --- 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