Reputation: 399
Hello to everyone and Happy New Year!
Since Gulp version 4 I can't run a shell script.
I have simple shell script.
if application id "com.adobe.estoolkit-4.0" is running then
display dialog "Close The App!" buttons {"OK"} default button 1
end if
When I run it this way, it works
const { exec } = require('child_process');
function checkAppisOpen() {
return exec('./utils/check.sh');
};
exports.run = checkAppisOpen;
But when I'm trying to use npm gulp-shell plugin it won't work.
Error: Did you forget to signal async completion?
See the code:
const shell = require('gulp-shell');
function checkAppisOpen() {
return shell('./utils/check.sh');
};
exports.run = checkAppisOpen;
I know I'm doing something wrong. Could please someone explain how this async completion works under the hood. Or at least where I could read about it. Because it seems like gulp documentation is not enough for me https://gulpjs.com/docs/en/getting-started/async-completion
Upvotes: 1
Views: 744