install.sh: fail without install argument

This commit is contained in:
Barrett Ruth 2023-01-05 12:20:18 -06:00
parent c19bf3d96b
commit f0547c5a9f

View file

@ -1,6 +1,9 @@
#!/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)