diff options
author | Philippe Schenker <philippe.schenker@toradex.com> | 2020-04-09 12:37:06 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2020-06-01 11:57:00 +0200 |
commit | 2288880b6767c1a211b0b911f699e173cb5f0713 (patch) | |
tree | 0f0d3405d66480a1af715f3ca9e3d678e75316eb /buildconf | |
parent | d2f191046b0481a73d178a8b189ce2e2ac2926f9 (diff) |
buildconf: export: add support for zsh
zsh has which built-in. Therefore calling which echo is resulting
in something unexpected:
$ which echo
echo: shell built-in command
use $(env which echo), that is using a which command from the PATH
variable. Also use $() instead of the deprecated ``.
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
(cherry picked from commit a4fa7bb1fb198fac82db91576994c98fc1014c71)
Diffstat (limited to 'buildconf')
-rw-r--r-- | buildconf/export | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildconf/export b/buildconf/export index 9f229cf..7508af8 100644 --- a/buildconf/export +++ b/buildconf/export @@ -1,5 +1,5 @@ #!/bin/sh -ECHO=`which echo` +ECHO=$(env which echo) BUILDDIR="../../build" FIRST_TIME=0 cd layers/openembedded-core |