We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbec69c commit af7063fCopy full SHA for af7063f
1 file changed
mtproxymax.sh
@@ -5846,7 +5846,7 @@ restore_backup() {
5846
5847
list_backups() {
5848
mkdir -p "$BACKUP_DIR"
5849
- local files; files=$(ls -1t "${BACKUP_DIR}"/mtproxymax-*.tar.gz 2>/dev/null)
+ local files; files=$(ls -1t "${BACKUP_DIR}"/mtproxymax-*.tar.gz 2>/dev/null) || true
5850
if [ -z "$files" ]; then
5851
log_info "No backups found in ${BACKUP_DIR}"
5852
return
0 commit comments