Skip to content

Commit

Permalink
chore: 自动创建目录
Browse files Browse the repository at this point in the history
  • Loading branch information
rehiy committed Feb 25, 2023
1 parent fd09236 commit d4787dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions serve.bat
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@ SET GO111MODULE=on

CD /d %~dp0

IF NOT EXIST var MD var

go mod tidy
go run main.go server -c var/server.yml
2 changes: 2 additions & 0 deletions serve.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@ export GO111MODULE=on

####################################################################

[ -d var ] || mkdir -p var

go mod tidy
go run main.go server -c var/server.yml

0 comments on commit d4787dd

Please sign in to comment.