summaryrefslogtreecommitdiff
path: root/scripts/functions
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2018-11-03 21:57:21 (GMT)
committerAlexey Neyman <stilor@att.net>2018-11-07 07:48:51 (GMT)
commit4acea9cc95db1c4f02bcfb52add9f4d4a736dc2a (patch)
tree9bb45a6bfff5621f2fe9ce87c01d0a8e2b6362d1 /scripts/functions
parentc00822f46804c333b02055b3ab374b97e50221a6 (diff)
Fix detection of missing overlays
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'scripts/functions')
-rw-r--r--scripts/functions3
1 files changed, 1 insertions, 2 deletions
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"