Skip to content

Commit

Permalink
Merge pull request #155 from yorkie/patch-1
Browse files Browse the repository at this point in the history
handle `Permission denied` for `mkdir`
  • Loading branch information
tj committed Jan 3, 2014
2 parents eb86f76 + caa3f0e commit ea7be92
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/n
Expand Up @@ -304,6 +304,10 @@ install_node() {

log mkdir $dir
mkdir -p $dir
if [ $? -ne 0 ] ; then
abort "sudo required"
fi

cd $dir

log fetch $url
Expand Down

0 comments on commit ea7be92

Please sign in to comment.