Skip to content

Commit

Permalink
修正bug
Browse files Browse the repository at this point in the history
  • Loading branch information
foru17 committed Mar 28, 2014
1 parent 7520938 commit 6bcb438
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ StaticPage是一套旨在提高静态页面开发效率、快速生成模板、

####一键脚本安装包

2014年3月27日更新:为了让大家更加方便,写了一个脚本,直接在终端运行一下命令就可以一键(1.git clone 2.重命名 3.修改项目配置 等)配置好所有的文件,不用再一个一个打开文件修改文件。脚本为`go.sh`文件,OSX系统下`sh go.sh`即可执行,大家看下就能理解。
2014年3月27日更新:为了让大家更加方便,写了一个脚本,直接在终端运行以下命令就可以一键(1.git clone 2.重命名 3.修改项目配置 等)配置好所有的文件,不用再一个一个打开文件修改文件。脚本为`go.sh`文件,OSX系统下`sh go.sh`即可执行,大家看下就能理解。

````
git clone https://github.com/foru17/StaticPage.git && cd StaticPage && sh go.sh
Expand Down
4 changes: 1 addition & 3 deletions go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,14 @@ done

#欢迎页面 如果有package.json则执行项目内操作
foldername=${PWD##*/}
if [ -a package.json ] && [ "$foldername" != "StaticPage" ];
if [ -a package.json ];
then
#cd .. && read -p "请给你的文件夹重命名:" rename && mv StaticPage $rename && cd $rename && sh go.sh
echo "欢迎使用\"StaticPage\"静态页面自动化工具"
echo "该项目文档在Github https://github.com/foru17/StaticPage "
echo
diyproject
else


while true;do
read -p '首先请git clone本项目,是否要执行(y/N)?: ' yn
case $yn in
Expand Down

0 comments on commit 6bcb438

Please sign in to comment.