Merge pull request #1087 from stilor/pr-985

Fix detection of missing overlays
This commit is contained in:
Alexey Neyman 2018-11-06 23:49:37 -08:00 committed by GitHub
commit 94e7967261
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2149,8 +2149,7 @@ CT_DoExtractPatch()
if [ -d "${overlay}" ]; then if [ -d "${overlay}" ]; then
CT_DoExecLog ALL cp -av "${overlay}/." "${CT_BUILD_DIR}/overlay" CT_DoExecLog ALL cp -av "${overlay}/." "${CT_BUILD_DIR}/overlay"
else else
ext=`CT_GetFileExtension "${overlay}"` if ! ext=`CT_GetFileExtension "${overlay}"`; then
if [ ! -r "${overlay}${ext}" ]; then
CT_Abort "Overlay ${overlay} not found" CT_Abort "Overlay ${overlay} not found"
fi fi
CT_Extract "${overlay}${ext}" "${CT_BUILD_DIR}/overlay" CT_Extract "${overlay}${ext}" "${CT_BUILD_DIR}/overlay"