install.sh: fail without install argument
This commit is contained in:
parent
c19bf3d96b
commit
f0547c5a9f
1 changed files with 4 additions and 1 deletions
|
|
@ -1,6 +1,9 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
[ "$1" ] || (echo 'Must provide node.js package manager' && exit)
|
if [ ! "$1" ]; then
|
||||||
|
echo 'Must provide node.js package manager'
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
git clone 'git@github.com:wix/import-cost.git' || (echo 'Failed to clone wix/import-cost' && exit)
|
git clone 'git@github.com:wix/import-cost.git' || (echo 'Failed to clone wix/import-cost' && exit)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue