Skip to content

Commit

Permalink
Return actual returned exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
Commifreak committed Oct 8, 2023
1 parent 2b0cdae commit 327569c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/include/ABHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public static function handlePrePostScript($script, ...$args) {
self::backupLog("Script executed!");

if ($resultcode != 0) {
self::backupLog("Script did not returned 0!", self::LOGLEVEL_WARN);
self::backupLog("Script did not returned 0 (it returned $resultcode)!", self::LOGLEVEL_WARN);
}
} else {
self::backupLog($script . ' is not existing! Skipping!', self::LOGLEVEL_ERR);
Expand Down
3 changes: 3 additions & 0 deletions src/include/ABSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,9 @@ public function getContainerSpecificSettings($name, $setEmptyToDefault = true) {
return $settings;
}

/**
* @return array
*/
public function checkCron() {
$cronSettings = '# Appdata.Backup cron settings' . PHP_EOL;
switch ($this->backupFrequency) {
Expand Down

0 comments on commit 327569c

Please sign in to comment.