feat: remove old scripts folder on start
This commit is contained in:
parent
c97360f601
commit
b159c151ae
2 changed files with 7 additions and 0 deletions
1
.github/workflows/release.yml
vendored
1
.github/workflows/release.yml
vendored
|
@ -54,6 +54,7 @@ jobs:
|
|||
|
||||
build-cli:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
needs: get-tag
|
||||
steps:
|
||||
- name: Checkout code
|
||||
|
|
|
@ -217,6 +217,12 @@ export const setEnvVariable = async (key: EnvKeys, value: string) => {
|
|||
* Copies the system files from the assets folder to the current working directory
|
||||
*/
|
||||
export const copySystemFiles = async () => {
|
||||
// Remove old unused files
|
||||
if (await pathExists(path.join(process.cwd(), 'scripts'))) {
|
||||
fileLogger.info('Removing old scripts folder');
|
||||
await fs.promises.rmdir(path.join(process.cwd(), 'scripts'), { recursive: true });
|
||||
}
|
||||
|
||||
const assetsFolder = path.join('/snapshot', 'runtipi', 'packages', 'cli', 'assets');
|
||||
|
||||
// Copy docker-compose.yml file
|
||||
|
|
Loading…
Reference in a new issue