Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bokuweb committed Oct 22, 2023
1 parent 47fc585 commit d541fef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/push.ts
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,11 @@ export const pushImages = async (input: PushImagesInput) => {
}

if (input.result.newItems.length > 0) {
const newGlobs = `${(workspace(), constants.ACTUAL_DIR_NAME)}/(${input.result.newItems.join('|')})`;
const newGlobs =
input.result.newItems.length === 1
? `${(workspace(), constants.ACTUAL_DIR_NAME)}/${input.result.newItems[0]})`
: `${(workspace(), constants.ACTUAL_DIR_NAME)}/(${input.result.newItems.join('|')})`;

console.log(newGlobs);
try {
cpx.copySync(newGlobs, `${REPO_TEMP}/${destinationFolder}/new/`);
Expand Down

0 comments on commit d541fef

Please sign in to comment.