From 66fbca321c8eec3e5cfa2b7febf4c2e01ddf4b82 Mon Sep 17 00:00:00 2001 From: Namekuji Date: Mon, 10 Jul 2023 12:50:54 -0400 Subject: [PATCH] docs: fix typo --- docs/migrate.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/migrate.md b/docs/migrate.md index 7e9653e70f..ae7df286ad 100644 --- a/docs/migrate.md +++ b/docs/migrate.md @@ -83,9 +83,9 @@ NODE_ENV=production pnpm run migrate cd packages/backend LINE_NUM="$(npx typeorm migration:show -d ormconfig.js | grep -n uniformThemecolor1652859567549 | cut -d ':' -f 1)" -NUM_MIGRATIONS="$(npx typeorm migration:show -d ormconfig.js | tail -n+"$LINE_NUM" | grep '\[X\]' | nl)" +NUM_MIGRATIONS="$(npx typeorm migration:show -d ormconfig.js | tail -n+"$LINE_NUM" | grep '\[X\]' | wc -l)" -for i in $(seq 1 $NUM_MIGRAIONS); do +for i in $(seq 1 $NUM_MIGRATIONS); do npx typeorm migration:revert -d ormconfig.js done