From e1453222ea331c0e16e9b861c00511ca27c83156 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sat, 26 Nov 2022 21:56:25 +0000 Subject: Use run_program::get_stdout to calculate installed size. This allows us to respond to check-alive pings whilst waiting. --- draklive-install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'draklive-install') diff --git a/draklive-install b/draklive-install index 3b8224c..6b9d786 100755 --- a/draklive-install +++ b/draklive-install @@ -307,7 +307,7 @@ sub get_total_size { state %total; return $total{$source} if $total{$source}; my $_wait = $in->wait_message('', N("Computing total size")); - $total{$source} = first(split(/\s+/, `du -sbx /run/mgalive/ovlsize 2>/dev/null`)); + $total{$source} = first(split(/\s+/, run_program::get_stdout('du', '2>', '/dev/null', '-sbx', '/run/mgalive/ovlsize'))); } sub sync_logs() { -- cgit v1.2.1