fix(admin.gbapp): Fix in DONT_DOWNLOAD.

This commit is contained in:
Rodrigo Rodriguez 2021-02-05 09:55:06 -03:00
parent 1e0a74b14a
commit 3ed733e4f8
3 changed files with 5 additions and 3 deletions

View file

@ -283,7 +283,9 @@ export class AdminDialog extends IGBDialog {
} else { } else {
cmd1 = `deployPackage ${packageName}`; cmd1 = `deployPackage ${packageName}`;
} }
if ((await (deployer as any).getStoragePackageByName(min.instance.instanceId, packageName)) !== null) { if ((await (deployer as any).getStoragePackageByName(min.instance.instanceId, packageName)) !== null &&
!process.env.DONT_DOWNLOAD
) {
const cmd2 = `undeployPackage ${packageName}`; const cmd2 = `undeployPackage ${packageName}`;
await GBAdminService.undeployPackageCommand(cmd2, min); await GBAdminService.undeployPackageCommand(cmd2, min);
} }

View file

@ -193,7 +193,7 @@ export class GBAdminService implements IGBAdminService {
// of local resources is required. // of local resources is required.
if (!localFolder.endsWith('.gbot')&& !process.env.DONT_DOWNLOAD) { if (!localFolder.endsWith('.gbot') && !process.env.DONT_DOWNLOAD) {
GBLog.warn(`${GBConfigService.get('CLOUD_USERNAME')} must be authorized on SharePoint related site to download to: ${localFolder}`); GBLog.warn(`${GBConfigService.get('CLOUD_USERNAME')} must be authorized on SharePoint related site to download to: ${localFolder}`);
await s.downloadFolder( await s.downloadFolder(
localFolder, localFolder,