refactor backup-list
This commit is contained in:
parent
3e64261986
commit
4a956a45bc
1 changed files with 2 additions and 2 deletions
|
@ -36,10 +36,10 @@ function backup_destroy() {
|
||||||
|
|
||||||
function backup_list() {
|
function backup_list() {
|
||||||
local backupdir="$(getValueByKey 'PODMAN_DIRECTORY')/${1}/backup"
|
local backupdir="$(getValueByKey 'PODMAN_DIRECTORY')/${1}/backup"
|
||||||
local found_backups="$(find "$backupdir" -type f -print)"
|
local found_backups=($(find "$backupdir" -type f -print))
|
||||||
|
|
||||||
log i "Found ${#found_backups[@]} backups:"
|
log i "Found ${#found_backups[@]} backups:"
|
||||||
for backup in "${found_backups[@]}"; do
|
for backup in "${found_backups[@]}"; do
|
||||||
basename "${backup%%.*}"
|
echo "- $(basename ${backup%%.*})"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue