[Slackbuilds-users] Adjust "find" in SBo templates?

B. Watson urchlay at slackware.uk
Fri May 5 18:42:49 UTC 2023

On Fri, 5 May 2023, Franzen via SlackBuilds-users wrote:

> in newer SlackBuilds Pat seems to like "find" with \+, instead of \;
> e.g. in 
> https://ftp.osuosl.org/pub/slackware/slackware64-current/source/l/gtk4/gtk4.SlackBuild
> How about adjusting the templates in http://slackbuilds.org/templates/ ?

I vote for this. I've been doing it in my own scripts for a few years now.

> The benefit: it's more fast.



Very rarely, it can cause a problem: sometimes a tarball ships with
a broken symlink in it. If this happens, the find with + will fail,
making the script exit due to -e (where the find with ; would not).

If that happens, you add a "|| true" to the end of the find command to
keep it from exiting, or else you put an rm command before the find,
to remove the offending bad link.

More information about the SlackBuilds-users mailing list