diff --git a/src/commands/pull.ts b/src/commands/pull.ts index 9a4c8f5..a0991b1 100644 --- a/src/commands/pull.ts +++ b/src/commands/pull.ts @@ -56,14 +56,9 @@ export default class Pull extends Command { if (install.includes('Already up-to-date')) { const updatedMessage = passedPull.content.replace(`${this.client.stores.emojis.loading} ***Reinstalling dependencies...***`, `${this.client.stores.emojis.success} ***No dependency updates available***\n${this.client.stores.emojis.loading} ***Rebuilding files...***`); updatedPackages = await updateMessage.edit(updatedMessage); - } else if (install.includes('success Saved lockfile.')) { + } else { const updatedMessage = passedPull.content.replace(`${this.client.stores.emojis.loading} ***Reinstalling dependencies...***`, `${this.client.stores.emojis.success} ***Updated dependencies***\n${this.client.stores.emojis.loading} ***Rebuilding files...***`); updatedPackages = await updateMessage.edit(updatedMessage); - } else { - const updatedMessage = passedPull.content.replace(`${this.client.stores.emojis.loading} ***Reinstalling dependencies...***`, `${this.client.stores.emojis.error} ***Unexpected yarn install output***\n` - + `\`\`\`\n${install}\n\`\`\``); - this.client.updating = false; - return updateMessage.edit(updatedMessage); } let build: string;