[DebianGIS-dev] Bug#463888: Bug#463888: php5-mapscript: postint syntax error: line 20: -f: command not found

Francesco P. Lovergine frankie at debian.org
Mon Feb 4 12:58:15 UTC 2008


On Mon, Feb 04, 2008 at 01:21:44PM +1300, Mark Robinson wrote:
> Package: php5-mapscript
> Version: 5.0.2-1
> Severity: normal
> 
> 
> > Setting up php5-mapscript (5.0.2-1) ...
> > /var/lib/dpkg/info/php5-mapscript.postinst: line 20: -f: command not found
> 
> Perhaps
> 
> > if [ "$RET" = "true" ] && ! -f /etc/$phpver/$SAPI/conf.d/mapscript.ini
> > then
> 
> should read
> 
> > if [ "$RET" = "true" ] && ! [-f /etc/$phpver/$SAPI/conf.d/mapscript.ini]; then
> 
> But I am no flash script0r.
> 

Uhm

if [ "$RET" = "true" -a ! -f /etc/$phpver/$SAPI/conf.d/mapscript.ini ]; then

is a correct test expression.

-- 
Francesco P. Lovergine





More information about the Pkg-grass-devel mailing list