Permalink
Browse files

Merge pull request #155 from yorkie/patch-1

handle `Permission denied` for `mkdir`
  • Loading branch information...
2 parents eb86f76 + caa3f0e commit ea7be92af8fb35a6b88773a3bc6e958b13b61c5a TJ Holowaychuk committed Jan 3, 2014
Showing with 4 additions and 0 deletions.
  1. +4 −0 bin/n
View
@@ -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

0 comments on commit ea7be92

Please sign in to comment.