diff --git a/script/.setup.sh.swp b/script/.setup.sh.swp new file mode 100644 index 0000000..2871982 Binary files /dev/null and b/script/.setup.sh.swp differ diff --git a/script/setup.sh b/script/setup.sh index 2f7397f..85a1847 100755 --- a/script/setup.sh +++ b/script/setup.sh @@ -1,5 +1,12 @@ #! /bin/sh +#version check +if grep centos /etc/*-release; then +echo "os : centos, use yum" +elif grep ubuntu /etc/*-release; then +echo "os : ubuntu, use apt-get install" +fi + # setup sudo npm install -g bower sudo --askpass bower install --allow-root