mirror of
https://github.com/cupcakearmy/autorestic.git
synced 2024-12-22 16:26:25 +00:00
rebuild links
This commit is contained in:
parent
c138ac9882
commit
da7b70c7a7
@ -51,9 +51,9 @@ export const normalizeAndCheckLocations = (config: Config) => {
|
|||||||
|
|
||||||
for (const [name, { from, to, cron, ...rest }] of Object.entries(config.locations)) {
|
for (const [name, { from, to, cron, ...rest }] of Object.entries(config.locations)) {
|
||||||
if (!from)
|
if (!from)
|
||||||
throw new Error(`The location "${name.blue}" is missing the "${'from'.underline.red}" source folder. See https://git.io/Jf0Hw`)
|
throw new Error(`The location "${name.blue}" is missing the "${'from'.underline.red}" source folder. See https://git.io/Jf0xw`)
|
||||||
if (!to || (Array.isArray(to) && !to.length))
|
if (!to || (Array.isArray(to) && !to.length))
|
||||||
throw new Error(`The location "${name.blue}" has no backend "${'to'.underline.red}" to save the backups. See https://git.io/Jf0Hw`)
|
throw new Error(`The location "${name.blue}" has no backend "${'to'.underline.red}" to save the backups. See https://git.io/Jf0xw`)
|
||||||
|
|
||||||
for (const t of makeArrayIfIsNot(to))
|
for (const t of makeArrayIfIsNot(to))
|
||||||
checkDestination(t, name)
|
checkDestination(t, name)
|
||||||
@ -62,8 +62,7 @@ export const normalizeAndCheckLocations = (config: Config) => {
|
|||||||
try {
|
try {
|
||||||
CronParser.parseExpression(cron)
|
CronParser.parseExpression(cron)
|
||||||
} catch {
|
} catch {
|
||||||
// TODO provide link to docs
|
throw new Error(`The location "${name.blue}" has an invalid ${'cron'.underline.red} entry. See https://git.io/Jf0xP`)
|
||||||
throw new Error(`The location "${name.blue}" has an invalid ${'cron'.underline.red} entry`)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -113,7 +112,7 @@ export const init = (): Config => {
|
|||||||
'\n' +
|
'\n' +
|
||||||
OLD_CONFIG_FILE +
|
OLD_CONFIG_FILE +
|
||||||
'\n' +
|
'\n' +
|
||||||
'What? Why? '.grey + 'https://git.io/Jv2D0'.underline.grey +
|
'What? Why? '.grey + 'https://git.io/Jf0xK'.underline.grey +
|
||||||
'\n'
|
'\n'
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -228,7 +228,7 @@ export const help = () => {
|
|||||||
'\n help Show help' +
|
'\n help Show help' +
|
||||||
'\n' +
|
'\n' +
|
||||||
'\nExamples: '.yellow +
|
'\nExamples: '.yellow +
|
||||||
'https://git.io/fjVbg' +
|
'https://git.io/Jf0x6' +
|
||||||
'\n',
|
'\n',
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user