From f0547c5a9f778c1679f1f3c6dc199898631481eb Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Thu, 5 Jan 2023 12:20:18 -0600 Subject: [PATCH] install.sh: fail without install argument --- install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index a2afbaa..180cccd 100644 --- a/install.sh +++ b/install.sh @@ -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)