Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Apr 2013 19:21:05 -0400
From:      Eitan Adler <lists@eitanadler.com>
To:        freebsd-ports@freebsd.org
Subject:   Re: removing file doing uninstall
Message-ID:  <CAF6rxgki0K1uoCnQC0WtwiRBFPnzxDDOCVapPYVXbu7qPgc2KA@mail.gmail.com>
In-Reply-To: <BLU0-SMTP1373A5AE45C4BE69C06D6A393B00@phx.gbl>
References:  <BLU0-SMTP1373A5AE45C4BE69C06D6A393B00@phx.gbl>

next in thread | previous in thread | raw e-mail | index | archive | help
On 27 April 2013 09:11, Carmel <carmel_ny@hotmail.com> wrote:
> @unexec if %%PORTDOCS%%%%DOCSDIR%%/Release.html; then rm -f %%PORTDOCS%%%%DOCSDIR%%/Release.html; fi
>
> However, while "portlint -A" has no problem with it, I receive:
>
> share/doc/scamp/Release.html: not found

To explain this error:  note that if refers to a command, not to
file's existence.  You were missing [ -e $file ].

As others of had said, this is uneeded though.



-- 
Eitan Adler



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAF6rxgki0K1uoCnQC0WtwiRBFPnzxDDOCVapPYVXbu7qPgc2KA>