diff --git a/newapkbuild.in b/newapkbuild.in index d872bd3..54169cd 100644 --- a/newapkbuild.in +++ b/newapkbuild.in @@ -207,7 +207,7 @@ __EOF__ # Subpackage -dev is usually required only for C/C++. Since depends_dev # confuses a lot people, remove it if there's no .h or .hpp file. - find "$sdir" -name "*.h" -o -name "*.hpp" -maxdepth 3 \ + find "$sdir" -name "*.h" -o -name "*.hpp" -maxdepth 3 2>/dev/null \ | head -n 1 | grep -q ".*" \ || sed -i -e '/^depends_dev=.*/d' -e 's/\$depends_dev\s*//' APKBUILD