Browse Source
if backupdir is symlink fix
no backups were found if backupdir is symlink
pull/3807/head
Phil
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
lgsm/functions/info_distro.sh
|
|
@ -249,7 +249,7 @@ if [ -d "${backupdir}" ]; then |
|
|
|
backupcount=0 |
|
|
|
|
|
|
|
# If there are backups in backup dir. |
|
|
|
if [ "$(find "${backupdir}" -name "*.tar.gz" | wc -l)" -ne "0" ]; then |
|
|
|
if [ "$(find "${backupdir}/" -name "*.tar.gz" | wc -l)" -ne "0" ]; then |
|
|
|
# number of backups. |
|
|
|
backupcount="$(find "${backupdir}"/*.tar.gz | wc -l)" |
|
|
|
# most recent backup. |
|
|
|