cvs: pearweb /public_html go-pear

From: Date: Thu, 02 Jan 2003 22:38:40 +0000
Subject: cvs: pearweb /public_html go-pear
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-8055@lists.php.net to get a copy of this message
ssb Thu Jan 2 17:38:40 2003 EDT Modified files: /pearweb/public_html go-pear Log: * PEAR 1.0 fix Index: pearweb/public_html/go-pear diff -u pearweb/public_html/go-pear:1.28 pearweb/public_html/go-pear:1.29 --- pearweb/public_html/go-pear:1.28 Wed Nov 6 09:25:24 2002 +++ pearweb/public_html/go-pear Thu Jan 2 17:38:39 2003 @@ -16,7 +16,7 @@ # | Stig Sæther Bakken <stig@php.net> | # +----------------------------------------------------------------------+ # -# $Id: go-pear,v 1.28 2002/11/06 14:25:24 ssb Exp $ +# $Id: go-pear,v 1.29 2003/01/02 22:38:39 ssb Exp $ # # Automatically download all the files needed to run the "pear" command # (the PEAR package installer). Requires PHP 4.1.0 or newer. @@ -385,7 +385,8 @@ $wp = @fopen($tmpfile, "w"); if ($fp && $wp) { $hashbang = rtrim(fgets($fp, 1024)); - if (!strstr($hashbang, "include_path=")) { + if (substr($hashbang, 0, 9) != "#!/bin/sh" && + !strstr($hashbang, "include_path=")) { $hashbang .= "d include_path=$php_dir"; } fwrite($wp, "$hashbang\n");

« previous php.pear.cvs (#8055) next »