Skip to content
Snippets Groups Projects
Commit 7b9c90c4 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

harden function listBackupedServices

parent 056fcbd8
Branches
No related tags found
1 merge request!129Db Profiles
......@@ -188,7 +188,8 @@
# global string BACKUP_BASEDIR base directory of all backups
function listBackupedServices(){
(
find "${BACKUP_BASEDIR}" -mindepth 1 -maxdepth 1 -type d -exec basename {} \;
test -n "${BACKUP_BASEDIR}" && test -d "${BACKUP_BASEDIR}" \
&& find "${BACKUP_BASEDIR}" -mindepth 1 -maxdepth 1 -type d -exec basename {} \;
test -n "${ARCHIVE_BASEDIR}" && test -d "${ARCHIVE_BASEDIR}" \
&& find "${ARCHIVE_BASEDIR}" -mindepth 1 -maxdepth 1 -type d -exec basename {} \;
) | sort -u
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment