v1.5.1 增强程序稳定性
This commit is contained in:
@@ -5,8 +5,9 @@
|
||||
CWD="$(dirname "$0")"
|
||||
SQL_JSON="${CWD}/../internal/setup/sql.json"
|
||||
|
||||
if [ -f "$SQL_JSON" ]; then
|
||||
echo "sql.json already exists, skipping sql-dump (delete it manually to regenerate)"
|
||||
else
|
||||
if [ "$1" = "--force" ] || [ ! -f "$SQL_JSON" ]; then
|
||||
rm -f "$SQL_JSON"
|
||||
go run "${CWD}"/../cmd/sql-dump/main.go -dir="${CWD}"
|
||||
else
|
||||
echo "sql.json exists, skip (use --force to regenerate)"
|
||||
fi
|
||||
Reference in New Issue
Block a user