[clug] CVS commitinfo check php syntax

Sam Couter sam at couter.dropbear.id.au
Thu Jun 3 22:12:53 GMT 2004

Joel Pearson <pearj at writeme.com> wrote:
> When this runs on the command line, it generates errors when it gets to the
> return bit:
> /usr/local/sbin/phpsyntax.sh: line 9: return: can only `return' from a
> function or sourced script
> I assume that wouldn't be a problem because when commitinfo calls the script
> it would be ok?

No. CVS will just run the script, it won't source it.

Change "return 1" into "exit 1" and see what happens.
Sam "Eddie" Couter  |  mailto:sam at couter.dropbear.id.au
Debian Developer    |  mailto:eddie at debian.org
                    |  jabber:sam at teknohaus.dyndns.org
OpenPGP fingerprint:  A46B 9BB5 3148 7BEA 1F05  5BD5 8530 03AE DE89 C75C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.samba.org/archive/linux/attachments/20040604/86a96862/attachment.bin

More information about the linux mailing list