diff options
Diffstat (limited to 'eclass/kde5-functions.eclass')
| -rw-r--r-- | eclass/kde5-functions.eclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/kde5-functions.eclass b/eclass/kde5-functions.eclass index 204c67faee5..1d31cb42c16 100644 --- a/eclass/kde5-functions.eclass +++ b/eclass/kde5-functions.eclass @@ -64,7 +64,7 @@ comment_add_subdirectory() { die "comment_add_subdirectory must be passed the directory name to comment" fi - if [[ -a "CMakeLists.txt" ]]; then + if [[ -e "CMakeLists.txt" ]]; then sed -e "/add_subdirectory[[:space:]]*([[:space:]]*${1}[[:space:]]*)/s/^/#DONOTCOMPILE /" \ -i CMakeLists.txt || die "failed to comment add_subdirectory(${1})" fi |
