We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee52cd3 commit d136067Copy full SHA for d136067
src/Wordpress/Deploy/FolderSync.php
@@ -67,6 +67,8 @@ public function sync($statusCallback=null) {
67
68
exec($command, $output, $ret);
69
70
+ $success = !boolval($ret);
71
+
72
/*
73
* Get output
74
*/
@@ -79,13 +81,13 @@ public function sync($statusCallback=null) {
79
81
* Process errors
80
82
83
- if(!$ret) {
84
+ if(!$success) {
85
$this->doStatusCallback(
86
new Status("Something went wrong. Sync did not complete successfully.", Status::MT_ERROR),
87
$statusCallback);
88
}
89
- return boolval($ret);
90
+ return $success;
91
92
93
/**
0 commit comments