Skip to content

Commit

Permalink
preinstall works
Browse files Browse the repository at this point in the history
  • Loading branch information
lepture committed Jul 30, 2013
1 parent 0d14f39 commit c05459a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion .npmignore
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -32,4 +32,3 @@ _site/
tests/ tests/
docs/ docs/
_theme/ _theme/
scripts/
2 changes: 1 addition & 1 deletion package.json
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,6 @@
{ {
"name": "spm", "name": "spm",
"version": "2.1.9", "version": "2.1.10",
"preferGlobal": "true", "preferGlobal": "true",
"description": "Static Package Manager", "description": "Static Package Manager",
"author": "Hsiaoming Yang <me@lepture.com>", "author": "Hsiaoming Yang <me@lepture.com>",
Expand Down
2 changes: 2 additions & 0 deletions scripts/preinstall.js
100644 → 100755
Original file line number Original file line Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env node

if (process.getuid && process.getuid() === 0) { if (process.getuid && process.getuid() === 0) {
console.log(''); console.log('');
console.log('NO SUDO PLEASE!!!') console.log('NO SUDO PLEASE!!!')
Expand Down

0 comments on commit c05459a

Please sign in to comment.