mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-22 22:36:06 +08:00
修复 command 变量
This commit is contained in:
parent
5c2127b62a
commit
fe50362d9c
|
@ -274,13 +274,13 @@ export default class DependenceService {
|
|||
: DependenceStatus.removing;
|
||||
await DependenceModel.update({ status }, { where: { id: depIds } });
|
||||
|
||||
let depRunCommand = isInstall
|
||||
let command = isInstall
|
||||
? getInstallCommand(dependency.type, depName)
|
||||
: getUninstallCommand(dependency.type, depName);
|
||||
if (isLinuxDependence) {
|
||||
depRunCommand = isInstall
|
||||
? linuxCommand.install
|
||||
: linuxCommand.uninstall;
|
||||
command = isInstall
|
||||
? `${linuxCommand.install} ${depName.trim()}`
|
||||
: `${linuxCommand.uninstall} ${depName.trim()}`;
|
||||
}
|
||||
const startTime = dayjs();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user