Move instead of copy the temporary git manifest

This prevents a build-up of temporary files in the cache directory

Change-Id: Ice34b57ef4f24bbe69b43ee3b2e2e394894825e5
This commit is contained in:
Jon-Paul Sullivan 2014-04-15 11:24:43 +01:00
parent ae9ccc4a23
commit b507cab2b5

View File

@ -178,5 +178,5 @@ done
# Copy the manifest into the image if it exists (there may be no git repositories used) # Copy the manifest into the image if it exists (there may be no git repositories used)
if [ -e "$GIT_MANIFEST" ] ; then if [ -e "$GIT_MANIFEST" ] ; then
sudo cp $GIT_MANIFEST $TMP_MOUNT_PATH/${DIB_MANIFEST_IMAGE_DIR}/$GIT_MANIFEST_NAME sudo mv $GIT_MANIFEST $TMP_MOUNT_PATH/${DIB_MANIFEST_IMAGE_DIR}/$GIT_MANIFEST_NAME
fi fi