Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
fixed variable name for startup file env var
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronj1335 committed Sep 13, 2011
1 parent aac65ed commit ff0b738
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/node.js
Expand Up @@ -111,15 +111,15 @@
// REPL // REPL
var ctx = Module.requireRepl().start().context; var ctx = Module.requireRepl().start().context;


var startup = process.env.NODE_STARTUP; var stup = process.env.NODE_STARTUP;
if (startup) { if (stup) {
var path = NativeModule.require('path'); var path = NativeModule.require('path');
var fs = NativeModule.require('fs'); var fs = NativeModule.require('fs');
var vm = NativeModule.require('vm'); var vm = NativeModule.require('vm');


path.exists(startup, function(exists) { path.exists(stup, function(exists) {
if (exists) { if (exists) {
fs.readFile(startup, function(err, data) { fs.readFile(stup, function(err, data) {
if (! err) { if (! err) {
vm.runInContext(data.toString('utf8'), ctx); vm.runInContext(data.toString('utf8'), ctx);
} }
Expand Down

0 comments on commit ff0b738

Please sign in to comment.