Skip to content

Commit

Permalink
fix: pull script typo (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnshift authored May 15, 2024
1 parent b33a9ac commit a696dc6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/pull-remote.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@
const util = require('node:util');
const exec = util.promisify(require('node:child_process').exec);

(async function () {
const MAIN_BRANCH = 'main'(async function () {
try {
// Get branch name
const { stdout: branchName } = await exec(
'git rev-parse --abbrev-ref HEAD',
);

// Checkout app-router
await exec('git checkout app-router');
// Checkout main
await exec(`git checkout ${MAIN_BRANCH}`);

// Pull origin app-router
await exec('git pull origin app-router');
// Pull origin main
await exec(`git pull origin ${MAIN_BRANCH}`);

// Delete local feature-branch
await exec(`git branch -D ${branchName}`);
Expand Down

0 comments on commit a696dc6

Please sign in to comment.