diff options
author | Alexey Neyman <stilor@att.net> | 2018-11-03 14:57:21 -0700 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2018-11-06 23:48:51 -0800 |
commit | 4acea9cc95db1c4f02bcfb52add9f4d4a736dc2a (patch) | |
tree | 9bb45a6bfff5621f2fe9ce87c01d0a8e2b6362d1 /scripts/functions | |
parent | c00822f46804c333b02055b3ab374b97e50221a6 (diff) | |
download | crosstool-ng-4acea9cc95db1c4f02bcfb52add9f4d4a736dc2a.tar.gz crosstool-ng-4acea9cc95db1c4f02bcfb52add9f4d4a736dc2a.tar.bz2 crosstool-ng-4acea9cc95db1c4f02bcfb52add9f4d4a736dc2a.zip |
Fix detection of missing overlays
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'scripts/functions')
-rw-r--r-- | scripts/functions | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/functions b/scripts/functions index b71734b9..ec0d9a16 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" |