mirror of
https://github.com/wekan/wekan.git
synced 2026-02-24 08:54:06 +01:00
Remove leftover unused arguments parsing for external execution
This commit is contained in:
parent
b5d311c00c
commit
e6b705be26
1 changed files with 0 additions and 8 deletions
|
|
@ -162,14 +162,6 @@ if (Meteor.isServer) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isValid && attachmentUploadExternalProgram) {
|
if (isValid && attachmentUploadExternalProgram) {
|
||||||
let args = { ...attachmentUploadExternalProgram.args };
|
|
||||||
|
|
||||||
for (let key in args) {
|
|
||||||
if (args[key] == "%file") {
|
|
||||||
args[key] = fileObj.path;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Promise.await(asyncExec(attachmentUploadExternalProgram.replace("{file}", '"' + fileObj.path + '"')));
|
Promise.await(asyncExec(attachmentUploadExternalProgram.replace("{file}", '"' + fileObj.path + '"')));
|
||||||
isValid = fs.existsSync(fileObj.path);
|
isValid = fs.existsSync(fileObj.path);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue