toaruos/util/calc-size.sh

10 lines
162 B
Bash
Raw Normal View History

#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
SPACE_REQ=$(du -sb "$DIR/../base" | cut -f 1)
2018-12-05 07:01:16 +03:00
let "SIZE = ($SPACE_REQ / 3400)"
echo $SIZE