aboutsummaryrefslogtreecommitdiffstats
path: root/setenv.pl
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-06-03 15:48:26 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-06-03 15:48:26 +0100
commitc10a787f1f529cadae06fd9c8dff58ca7224d223 (patch)
tree90644a2865fe05769fe0a2b8aea6cc73597f4433 /setenv.pl
parent34e78aa47e8cad5ba237705dd8a2fa1d1403ff20 (diff)
Fix RSS lat/lon redirect from alert list page; break setenv.pl's ARGV feature.
Diffstat (limited to 'setenv.pl')
-rwxr-xr-xsetenv.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/setenv.pl b/setenv.pl
index 1d4ca3d2b..b5461f30e 100755
--- a/setenv.pl
+++ b/setenv.pl
@@ -34,12 +34,12 @@ $ENV{PATH} = join ':', uniq "$root/bin", split( m/:/, $ENV{PATH} );
# now decide what to do - if no arguments print out shell arguments to set the
# environment. If there are arguments then run those so that they run correctly
-if (@ARGV) {
- system @ARGV;
-}
+#if (@ARGV) {
+# system @ARGV;
+#}
# we might want to require this file to configure something like a CGI script
-elsif ( $0 eq __FILE__ ) {
+if ( $0 eq __FILE__ ) {
my @keys = sort 'PATH', grep { m{^PERL} } keys %ENV;