mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Prevent overwriting existing toml file
This commit is contained in:
parent
93af987329
commit
9bc45ffc5a
1 changed files with 6 additions and 0 deletions
|
|
@ -10,6 +10,12 @@ import {
|
|||
} from '~/helpers/stork/config.js'
|
||||
|
||||
export async function downloadStorkToml () {
|
||||
// Check if the toml file exists
|
||||
if (fs.existsSync(storkTomlPath)) {
|
||||
console.log(`Stork toml file already exists at ${storkTomlPath}`)
|
||||
return
|
||||
}
|
||||
|
||||
const apiUrl = new URL( process.env.PUBLIC_API_DOMAIN )
|
||||
|
||||
apiUrl.pathname = storkTomlPath.replace('static/', '')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue