From d7adccfac3b55fdac91554ebbef83cf68ccfaf5a Mon Sep 17 00:00:00 2001 From: Josep Puigdemont Date: Wed, 20 Apr 2016 23:08:35 +0200 Subject: build.sh: do not use readlink for unexisting dir The build failed to copy the artifact files to the destination directory because the variable BUILD_DIRECTORY was empty. This variable is obtained doing "readlink" on a path, although at the time of the assignment that path does not exist yet. This is because it depends on a path inside a submodule that has not yet been initialized. We remove readlink on the assignment since we know the path will already be in a canonicalized form, since it is constructed from an already canonicalized path. Change-Id: Icc1113d26b503ff998aebbcd1efe81004859f878 Signed-off-by: Josep Puigdemont --- ci/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ci') diff --git a/ci/build.sh b/ci/build.sh index 256f8284..98078b0a 100755 --- a/ci/build.sh +++ b/ci/build.sh @@ -23,7 +23,7 @@ echo "Building armband, output dir: $OUTPUT_DIR" cd .. SCRIPT_DIR=$(readlink -f $(dirname ${BASH_SOURCE[0]})) -BUILD_BASE=$(readlink -e ${SCRIPT_DIR}/upstream/fuel/build/) +BUILD_BASE="${SCRIPT_DIR}/upstream/fuel/build/" RESULT_DIR="${BUILD_BASE}/release" make release || error_exit "Make release failed" -- cgit 1.2.3-korg