diff options
-rwxr-xr-x | draklive-install | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/draklive-install b/draklive-install index 7ae8dbc..fa2780d 100755 --- a/draklive-install +++ b/draklive-install @@ -155,10 +155,10 @@ sub build_copy_command { sub get_total_size { my ($in, $source) = @_; - state $total; - return $total if $total; + state %total; + return $total{$source} if $total{$source}; my $_wait = $in->wait_message('', N("Computing total size")); - $total = first(split(/\s+/, `du -sbx $source 2>/dev/null`)); + $total{$source} = first(split(/\s+/, `du -sbx $source 2>/dev/null`)); } sub copy_root { |