mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
sysutils/sfpt-backup: style sweep
This commit is contained in:
@@ -263,7 +263,7 @@ class Sftp extends Base implements IBackupProvider
|
||||
if ($this->model->backupcount->asFloat() > 0) {
|
||||
rsort($remote_backups);
|
||||
if (count($remote_backups) > (int)$this->model->backupcount->getCurrentValue()) {
|
||||
for ($i = $this->model->backupcount->getCurrentValue() ; $i < count($remote_backups); $i++) {
|
||||
for ($i = $this->model->backupcount->getCurrentValue(); $i < count($remote_backups); $i++) {
|
||||
$this->del($remote_backups[$i]);
|
||||
}
|
||||
$remote_backups = $this->ls(sprintf('%s*.xml', $fileprefix));
|
||||
|
||||
Reference in New Issue
Block a user