Date: Mon, 4 Jun 2018 10:18:17 +0000 From: Alexey Dokuchaev <danfe@FreeBSD.org> To: Mathieu Arnold <mat@FreeBSD.org> Cc: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: Re: svn commit: r471272 - head/Mk/Scripts Message-ID: <20180604101817.GA43725@FreeBSD.org> In-Reply-To: <201806011620.w51GKmJu004402@repo.freebsd.org> References: <201806011620.w51GKmJu004402@repo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180604101817.GA43725>