Skip to content

Commit

Permalink
Merge pull request #47 from PeterDaveHello/patch-1
Browse files Browse the repository at this point in the history
Detect number of parameters, exit if less then 2.
  • Loading branch information
rstacruz committed Jan 31, 2016
2 parents 0f63df0 + cc0fba2 commit 2d0b515
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/pnpm
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
#!/usr/bin/env sh

if [ "$#" -lt "1" ]; then
echo "You should pass at least 1 parameter to pnpm" 1>&2
pnpm-install --help
exit 1
fi

cmd=$1
shift
args=$*
Expand Down

0 comments on commit 2d0b515

Please sign in to comment.