Kalev Lember <kalevlem...@gmail.com> wrote: > # If no desktop files are installed, return immediately > if ! ls -A "$RPM_BUILD_ROOT"/usr/share/applications/ 2>/dev/null; then > exit 0 > fi
That tests whether the directory exists, not whether it contains desktop files. If that's what you want, then «if [ -d "$RPM_BUILD_ROOT"/usr/share/applications/ ]; then» would be much less confusing code. Björn Persson
signature.asc
Description: PGP signature
-- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct