summaryrefslogtreecommitdiffstats
path: root/draksnapshot-config
diff options
context:
space:
mode:
authorblino <blino@magei.org>2020-05-29 21:40:15 +0200
committerNicolas Lécureuil <neoclust@mageia.org>2020-06-02 10:11:04 +0200
commitf14aaecef5b5fa76646960b826b81e2fcdc6f48d (patch)
tree8efe526190bf4dd593e1b20bef99f136de11c188 /draksnapshot-config
parent9b1961d71498bc121d4f3be3351813ce90f30a51 (diff)
downloaddraksnapshot-f14aaecef5b5fa76646960b826b81e2fcdc6f48d.tar
draksnapshot-f14aaecef5b5fa76646960b826b81e2fcdc6f48d.tar.gz
draksnapshot-f14aaecef5b5fa76646960b826b81e2fcdc6f48d.tar.bz2
draksnapshot-f14aaecef5b5fa76646960b826b81e2fcdc6f48d.tar.xz
draksnapshot-f14aaecef5b5fa76646960b826b81e2fcdc6f48d.zip
fix crash when hal is not running (#3032)
Diffstat (limited to 'draksnapshot-config')
-rwxr-xr-xdraksnapshot-config2
1 files changed, 1 insertions, 1 deletions
diff --git a/draksnapshot-config b/draksnapshot-config
index 3558037..127a762 100755
--- a/draksnapshot-config
+++ b/draksnapshot-config
@@ -112,7 +112,7 @@ my $where;
if (!$backup_directory || $::testing) {
my $dbus = get_system_bus();
if ($dbus) {
- my @discs = map { $_->GetProperty('volume.mount_point') } find_removable_volumes($dbus);
+ my @discs = map { $_->GetProperty('volume.mount_point') } eval { find_removable_volumes($dbus) };
$backup_directory = $discs[0];
}
}