Skip to content

Commit 742e0da

Browse files
liuguo09xiaoxiang781216
authored andcommitted
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 <liuhaitao@xiaomi.com>
1 parent 384af2d commit 742e0da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cibuild.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# under the License.
1919
set -e -x
2020

21-
WD=$PWD
21+
WD=$(cd $(dirname $0) && pwd)
2222
nuttx=$WD/../nuttx
2323
apps=$WD/../apps
2424
tools=$WD/../tools

0 commit comments

Comments
 (0)