You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/05/01 20:50:26 UTC
[incubator-nuttx-testing] 05/41: Get the full directory name of the
cibuild.sh no matter where called from
This is an automated email from the ASF dual-hosted git repository.
gnutt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-testing.git
commit 742e0dae46d78701f10f995772f667c97c74620f
Author: liuhaitao <li...@xiaomi.com>
AuthorDate: Fri Feb 7 23:20:24 2020 +0800
Get the full directory name of the cibuild.sh no matter where called from
Or it would fail to set nuttx/apps/tools/prebuilt dirs correctly when cibuild.sh
is not called by 'cd testing; ./cibuild.sh'. For example, it would break jenkins
groovy script which call with ./testing/cibuild.sh.
Change-Id: I8a9d4a6534578a472952668c0172cd6f5bedff8e
Signed-off-by: liuhaitao <li...@xiaomi.com>
---
cibuild.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cibuild.sh b/cibuild.sh
index a939744..9a36c9f 100755
--- a/cibuild.sh
+++ b/cibuild.sh
@@ -18,7 +18,7 @@
# under the License.
set -e -x
-WD=$PWD
+WD=$(cd $(dirname $0) && pwd)
nuttx=$WD/../nuttx
apps=$WD/../apps
tools=$WD/../tools