summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-08-14 18:46:23 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-08-14 18:46:23 +0000
commit525ae1e7e2ab12f1903eb27f5300159c2e2cde36 (patch)
treecd524e28c87b2133b99808bd7c8aa57d57f13013 /etc
parenta990d2dcda9068327035deb34cf829222f7fb891 (diff)
downloadpfsense-525ae1e7e2ab12f1903eb27f5300159c2e2cde36.zip
pfsense-525ae1e7e2ab12f1903eb27f5300159c2e2cde36.tar.gz
Return last entry for discover_backup()
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/config.inc3
1 files changed, 1 insertions, 2 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index d664192..5f21c30 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -271,8 +271,7 @@ function discover_last_backup() {
$backups = split("\n", `cd /cf/conf/backup && ls -ltr *.xml | awk '{print \$9}' | grep -v "\\.\\."`);
$last_backup = "";
foreach($backups as $backup)
- if($backup)
- $last_backup = $backup;
+ $last_backup = $backup;
return $last_backup;
}
OpenPOWER on IntegriCloud