mirror of
https://github.com/easingthemes/ssh-deploy.git
synced 2024-04-28 00:37:18 +08:00
Testing isRequired for remoteCMD
This commit is contained in:
parent
3884c8554f
commit
e19f9271b6
@ -24,7 +24,7 @@ const run = async () => {
|
||||
}
|
||||
// Check Script before
|
||||
if (scriptBefore) {
|
||||
await remoteCmdBefore(scriptBefore, privateKeyPath);
|
||||
await remoteCmdBefore(scriptBefore, privateKeyPath, true);
|
||||
}
|
||||
/* eslint-disable object-property-newline */
|
||||
await sshDeploy({
|
||||
@ -33,7 +33,7 @@ const run = async () => {
|
||||
});
|
||||
// Check script after
|
||||
if (scriptAfter) {
|
||||
await remoteCmdAfter(scriptAfter, privateKeyPath);
|
||||
await remoteCmdAfter(scriptAfter, privateKeyPath, true);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user