Skip to content

Commit

Permalink
fixing sudo causing no PWD
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseditson committed Sep 20, 2012
1 parent fcb3722 commit a510bc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/helpers.js
Expand Up @@ -15,7 +15,7 @@ var appRoot
var getAppRoot = module.exports.getAppRoot = function(dir){
if(appRoot) return appRoot;
// looks up the directory tree until it finds a folder with a .urza file.
dir = dir ? dir.replace(/\/[^\/]+$/,'') : process.env.PWD;
dir = (dir ? dir.replace(/\/[^\/]+$/,'') : process.env.PWD || process.cwd())
if(!dir.length){
console.error('Urza app not found. Please run from inside an Urza app.');
process.exit(1);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -2,7 +2,7 @@
"author": "Jesse Ditson <jesse.ditson@gmail.com>",
"name": "urza",
"description": "Urza is a node.js framework built for rapid development.",
"version": "0.1.4-1",
"version": "0.1.4-2",
"repository": {
"type": "git",
"url": "git://github.com/jesseditson/Urza.git"
Expand Down

0 comments on commit a510bc9

Please sign in to comment.