svn: /web/php-master/trunk/ scripts/update-backend
[email protected] (Hannes Magnusson)
| Newsgroups | php.webmaster |
|---|---|
| Message-ID | <[email protected]> |
bjori Sat, 08 Jan 2011 15:37:52 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=307270
Log:
Make it possible to fetch the token from a file too
Add the ctags file and the .token to svn:ignore
Changed paths:
_U web/php-master/trunk/
U web/php-master/trunk/scripts/update-backend
Property changes on: web/php-master/trunk
___________________________________________________________________
Modified: svn:ignore
- diff
htaccess
+ diff
htaccess
token
tags
Modified: web/php-master/trunk/scripts/update-backend
===================================================================
--- web/php-master/trunk/scripts/update-backend 2011-01-08 15:35:50 UTC (rev 307269)
+++ web/php-master/trunk/scripts/update-backend 2011-01-08 15:37:52 UTC (rev 307270)
@@ -4,6 +4,7 @@
// We protect the master server with this token, so
// only who knows the token can fetch data from the server
$token = getenv("TOKEN");
+if (!$token && file_exists(".token")) $token = file_get_contents(".token");
if (!$token) die("you have to set the TOKEN environment variable");
$token = rawurlencode($token);