aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2020-05-21 23:14:26 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2020-05-21 23:14:26 +0100
commit2b86807c81dfa118508408931c8cf9627d770c31 (patch)
tree0a2a8485aa5fdde03983873e5395fa362051be20
parentbinutils-config: add build-time and runtime switches to disable native symlinks (diff)
downloadbinutils-config-2b86807c81dfa118508408931c8cf9627d770c31.tar.gz
binutils-config-2b86807c81dfa118508408931c8cf9627d770c31.tar.bz2
binutils-config-2b86807c81dfa118508408931c8cf9627d770c31.zip
src/binutils-config: unbreak AND syntax for [[ ]]
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
-rwxr-xr-xsrc/binutils-config2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/binutils-config b/src/binutils-config
index e6819a8..fdee7df 100755
--- a/src/binutils-config
+++ b/src/binutils-config
@@ -130,7 +130,7 @@ switch_profile() {
for x in * ; do
atomic_ln "${BINPATH}/${x}" "${ROOT}/${BINPATH_LINKS}" "${x}"
atomic_ln "${BINPATH_LINKS}/${x}" "${EROOT}/usr/bin" "${TARGET}-${x}"
- if [[ ${TARGET} == ${HOST} -a ${USE_NATIVE_LINKS} == yes ]] ; then
+ if [[ ${TARGET} == ${HOST} && ${USE_NATIVE_LINKS} == yes ]] ; then
atomic_ln "${TARGET}-${x}" "${EROOT}/usr/bin" "${x}"
else
# Remove native links if exist from previous