diff --git a/install.sh b/install.sh deleted file mode 100644 index 67a689b..0000000 --- a/install.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash -# Save current npm version to variable, ex v6.11.2 -NODE_V=$(node -v) -# Pull out the major version number -NODE_MAJOR=$(grep -oP '(?<=v).*?(?=\.)' <<<"$NODE_V") -# Check if npm version is less than 6 -if [ ${NODE_MAJOR} -lt 6 ]; then - echo -e "\n\e[31mYour current version of Node is $NODE_V, which is not compatible with opspark.\n" - echo -e "Please \e[1m\e[34mupdate to (at least) Node version 6 using NVM \e[0m\e[31mand reinstall opspark.\n" - echo -e "Opspark WILL NOT WORK even if it is installed with this version of Node.\n" - pkill -9 -P $PPID -else - echo -e "\e[32mNode $NODE_V, good to go!" - npm install --global bower --depth=0 --progress - npm install --global mocha - echo "Great! Have fun using OpSpark!" -fi diff --git a/package.json b/package.json index d1a2908..df5f910 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,6 @@ "node": ">=6.0.0" }, "scripts": { - "postinstall": "bash ./install.sh", - "windows-dev": "dos2unix ./install.sh", "dev": "nodemon test-server.js", "test": "mocha ./test", "test:publish": "act release -W .github/workflows/npm-publish.yml"