toaruos/util/calc-size.sh

10 lines
162 B
Bash
Executable File

#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
SPACE_REQ=$(du -sb "$DIR/../base" | cut -f 1)
let "SIZE = ($SPACE_REQ / 3500)"
echo $SIZE