build.sh: do not use readlink for unexisting dir 05/12505/2
authorJosep Puigdemont <josep.puigdemont@enea.com>
Wed, 20 Apr 2016 21:08:35 +0000 (23:08 +0200)
committerJosep Puigdemont <josep.puigdemont@gmail.com>
Wed, 20 Apr 2016 21:20:20 +0000 (21:20 +0000)
commitd7adccfac3b55fdac91554ebbef83cf68ccfaf5a
treec3111f09d5a9b7ab323b4fb15ee5c5bb3780b18f
parent26afb33eae322c85eda964d755a2ed0c05857a85
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 <josep.puigdemont@enea.com>
ci/build.sh