From 4acea9cc95db1c4f02bcfb52add9f4d4a736dc2a Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Sat, 3 Nov 2018 14:57:21 -0700 Subject: Fix detection of missing overlays Signed-off-by: Alexey Neyman diff --git a/scripts/functions b/scripts/functions index b71734b..ec0d9a1 100644 --- a/scripts/functions +++ b/scripts/functions @@ -2149,8 +2149,7 @@ CT_DoExtractPatch() if [ -d "${overlay}" ]; then CT_DoExecLog ALL cp -av "${overlay}/." "${CT_BUILD_DIR}/overlay" else - ext=`CT_GetFileExtension "${overlay}"` - if [ ! -r "${overlay}${ext}" ]; then + if ! ext=`CT_GetFileExtension "${overlay}"`; then CT_Abort "Overlay ${overlay} not found" fi CT_Extract "${overlay}${ext}" "${CT_BUILD_DIR}/overlay" -- cgit v0.10.2-6-g49f6