diff options
author | Anders Roxell <anders.roxell@linaro.org> | 2015-09-14 10:07:00 +0200 |
---|---|---|
committer | Anders Roxell <anders.roxell@linaro.org> | 2015-09-14 10:41:52 +0200 |
commit | 44519a2952e793912393085d68b14588e3391867 (patch) | |
tree | 565fad8a7003f8688c0e83057e57c6d93206634c | |
parent | 9dbadf3672223c6586cca58132195e686858d4ff (diff) |
post-build-sort-out-downloads: add default base_dir pathrelease-15.09
The base_dir insn't set in the script and it try to copy the downloads
from /workspace/downloads/ that don't exist. Adding a default base_dir
path that CI are using, "/mnt/ci_build" which can be override from the
environment.
Change-Id: I2b172905eb41be9fcb4202b3763d9887fa0930e9
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
-rwxr-xr-x | post-build-sort-out-downloads.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/post-build-sort-out-downloads.sh b/post-build-sort-out-downloads.sh index eac194c..6802738 100755 --- a/post-build-sort-out-downloads.sh +++ b/post-build-sort-out-downloads.sh @@ -12,6 +12,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/> +base_dir="${base_dir:-/mnt/ci_build}" + rm -rf ${WORKSPACE}/downloads mkdir -p ${WORKSPACE}/downloads |