projects
/
openwrt
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
969690b
)
toolchain/wrapper.sh: Replace read with read -r
author
Rosen Penev
<rosenp@gmail.com>
Mon, 30 Dec 2019 03:41:17 +0000
(19:41 -0800)
committer
Petr Štetiar
<ynezz@true.cz>
Sat, 11 Jul 2020 11:33:28 +0000
(13:33 +0200)
Without -r, backslashes would get mangled.
Found with shellcheck.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
target/toolchain/files/wrapper.sh
patch
|
blob
|
history
diff --git
a/target/toolchain/files/wrapper.sh
b/target/toolchain/files/wrapper.sh
index 2cbcc8c1e6fdd984cafb1cd7dfe501dbbb66716d..6078d91973396590349066a806541ce82c7cc311 100755
(executable)
--- 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