mirror of
https://github.com/tw93/Mole.git
synced 2026-03-23 01:25:09 +00:00
refactor: Update shell arithmetic increment syntax from ((var++)) || true to var=$((var + 1)) across various scripts.
This commit is contained in:
@@ -536,7 +536,7 @@ calculate_total_size() {
|
||||
if [[ -n "$file" && -e "$file" ]]; then
|
||||
local size_kb
|
||||
size_kb=$(get_path_size_kb "$file")
|
||||
((total_kb += size_kb)) || true
|
||||
total_kb=$((total_kb + size_kb))
|
||||
fi
|
||||
done <<< "$files"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user