| 255 | // Print formatted header | 255 | // Print formatted header |
| 256 | console.log(); | 256 | console.log(); |
| 257 | console.log(`SillyTavern ${version.pkgVersion}`); | 257 | console.log(`SillyTavern ${version.pkgVersion}`); |
| 258 | console.log(version.gitBranch ? `Running '${version.gitBranch}' (${version.gitRevision}) - ${version.commitDate}` : ''); | 258 | if (version.gitBranch) { |
| 259 | if (version.gitBranch && !version.isLatest && ['staging', 'release'].includes(version.gitBranch)) { | 259 | console.log(`Running '${version.gitBranch}' (${version.gitRevision}) - ${version.commitDate}`); |
| | 260 | if (!version.isLatest && ['staging', 'release'].includes(version.gitBranch)) { |
| 260 | console.log('INFO: Currently not on the latest commit.'); | 261 | console.log('INFO: Currently not on the latest commit.'); |
| 261 | console.log(' Run \'git pull\' to update. If you have any merge conflicts, run \'git reset --hard\' and \'git pull\' to reset your branch.'); | 262 | console.log(' Run \'git pull\' to update. If you have any merge conflicts, run \'git reset --hard\' and \'git pull\' to reset your branch.'); |
| 262 | } | 263 | } |
| | 264 | } |
| 263 | console.log(); | 265 | console.log(); |
| 264 | | 266 | |
| 265 | const directories = await getUserDirectoriesList(); | 267 | const directories = await getUserDirectoriesList(); |