| | |
| | | } |
| | | } |
| | | |
| | | await fs.promises.unlink(path.join(contentFolder, ".gitkeep")) |
| | | const gitkeepPath = path.join(contentFolder, ".gitkeep") |
| | | if (fs.existsSync(gitkeepPath)) { |
| | | await fs.promises.unlink(gitkeepPath) |
| | | } |
| | | if (setupStrategy === "copy" || setupStrategy === "symlink") { |
| | | let originalFolder = sourceDirectory |
| | | |
| | |
| | | try { |
| | | gitPull(UPSTREAM_NAME, QUARTZ_SOURCE_BRANCH) |
| | | } catch { |
| | | console.log(chalk.red("An error occured above while pulling updates.")) |
| | | console.log(chalk.red("An error occurred above while pulling updates.")) |
| | | await popContentFolder(contentFolder) |
| | | return |
| | | } |
| | |
| | | try { |
| | | gitPull(ORIGIN_NAME, QUARTZ_SOURCE_BRANCH) |
| | | } catch { |
| | | console.log(chalk.red("An error occured above while pulling updates.")) |
| | | console.log(chalk.red("An error occurred above while pulling updates.")) |
| | | await popContentFolder(contentFolder) |
| | | return |
| | | } |