fix(config): don’t require token if in appMode

This commit is contained in:
Rhys Arkins 2019-01-13 06:49:46 +01:00
parent c7b8e79426
commit 1a610ff3f5

View file

@ -114,14 +114,16 @@ async function parseConfigs(env, argv) {
credentials.token = base64(`${username}:${password}`);
}
if (!credentials.token) {
throw new Error(`You need to supply a ${platformInfo.name} token.`);
}
if (!global.appMode) {
if (!credentials.token) {
throw new Error(`You need to supply a ${platformInfo.name} token.`);
}
hostRules.update({
...credentials,
default: true,
});
hostRules.update({
...credentials,
default: true,
});
}
if (config.autodiscover) {
// Autodiscover list of repositories