Merge "Only hardlink files from cache_dir if it exists"

This commit is contained in:
Jenkins 2017-05-03 23:14:17 +00:00 committed by Gerrit Code Review
commit 76b448914d
1 changed files with 4 additions and 2 deletions

View File

@ -517,8 +517,10 @@ function setup_workspace {
rm -rf ~/cache/files/
fi
# copy them to where devstack expects with hardlinks to save space
find $cache_dir -mindepth 1 -maxdepth 1 -exec cp -l {} $DEST/devstack/files/ \;
if [ -d $cache_dir ]; then
# copy them to where devstack expects with hardlinks to save space
find $cache_dir -mindepth 1 -maxdepth 1 -exec cp -l {} $DEST/devstack/files/ \;
fi
# Disable detailed logging as we return to the main script
$xtrace