From 433c92b6635163adbbd9bb6f3f41faf0041cde39 Mon Sep 17 00:00:00 2001 From: Ryan Date: Tue, 4 Oct 2016 21:49:47 +0200 Subject: [PATCH] fixed gulp command name --- run.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/run.sh b/run.sh index 82a8a51..bdcc2f4 100644 --- a/run.sh +++ b/run.sh @@ -2,7 +2,7 @@ # return true if local npm package is installed at ./node_modules, else false # example -# echo "gulpacular : $(npm_package_is_installed gulpacular)" +# echo "surge : $(npm_package_is_installed surge)" function npm_package_is_installed { # set to true initially local return_=true @@ -13,7 +13,7 @@ function npm_package_is_installed { } # First make sure surge is installed -if ! type gulp &> /dev/null ; then +if ! type surge &> /dev/null ; then # Check if it is in repo if ! $(npm_package_is_installed surge) ; then info "surge not installed, trying to install it through npm" @@ -27,8 +27,8 @@ if ! type gulp &> /dev/null ; then info "installing surge" npm config set ca "" --silent sudo npm install npm -g --silent - sudo npm install -g --silent gulp - gulp_command="surge" + sudo npm install -g --silent surge + surge_command="surge" fi else info "surge is available locally"