svn commit: r471272 - head/Mk/Scripts
Alexey Dokuchaev
danfe at FreeBSD.org
Mon Jun 4 10:18:18 UTC 2018
On Fri, Jun 01, 2018 at 04:20:48PM +0000, Mathieu Arnold wrote:
> New Revision: 471272
> URL: https://svnweb.freebsd.org/changeset/ports/471272
>
> Log:
> SC2164: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
>
> cd can fail for a variety of reasons: misspelled paths, missing
> directories, missing permissions, broken symlinks and more.
That's why I'd typically use 'set -e' as a safety net in case I forgot
to handle some command's failure.
./danfe
More information about the svn-ports-all
mailing list