Skip to content

Commit

Permalink
fixing command delimeters
Browse files Browse the repository at this point in the history
  • Loading branch information
pellicceama committed Jul 17, 2022
1 parent e9da5ed commit d4b7587
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/utils/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export async function commit(repo: string, message: string): Promise<void> {
try {
const cmd = `cd ${repo} ;` +
` git add . &&` +
` git commit -m ${message} &&`;
` git commit -m ${message}`;

return shell.exec(cmd);

Expand Down Expand Up @@ -86,9 +86,9 @@ export async function pull(directory: string, origin: string): Promise<void> {
async function forceCheckoutBranch(directory: string, branch: string) {
try {
const cmd = `cd ${directory} ;` +
` git stash` +
` git checkout ${branch}` +
` git pull origin ${branch}`;
` git stash ;` +
` git checkout ${branch} ;` +
` git pull origin ${branch} ;`;
return shell.exec(cmd);
} catch (err) {
throw err;
Expand Down

0 comments on commit d4b7587

Please sign in to comment.