summaryrefslogtreecommitdiffstats
path: root/draklive-install
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2022-11-26 21:56:25 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2022-11-26 21:56:25 +0000
commite1453222ea331c0e16e9b861c00511ca27c83156 (patch)
tree18515b1f440cdf7f2bb922d8833c569ba46d020a /draklive-install
parent02e5a6a3bb6cdeb5f16f2dd3a3cb6353b06aaaa8 (diff)
downloaddraklive-install-e1453222ea331c0e16e9b861c00511ca27c83156.tar
draklive-install-e1453222ea331c0e16e9b861c00511ca27c83156.tar.gz
draklive-install-e1453222ea331c0e16e9b861c00511ca27c83156.tar.bz2
draklive-install-e1453222ea331c0e16e9b861c00511ca27c83156.tar.xz
draklive-install-e1453222ea331c0e16e9b861c00511ca27c83156.zip
Use run_program::get_stdout to calculate installed size.
This allows us to respond to check-alive pings whilst waiting.
Diffstat (limited to 'draklive-install')
-rwxr-xr-xdraklive-install2
1 files changed, 1 insertions, 1 deletions
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() {