feat: Add disk_usage helper function
This commit is contained in:
parent
7df09ad64a
commit
9087fabb66
@ -35,3 +35,8 @@ function kill_service_on_port() {
|
|||||||
kill -9 $p;
|
kill -9 $p;
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function disk_usage() {
|
||||||
|
local path=${1:-.}
|
||||||
|
/run/current-system/sw/bin/du --max-depth=1 -h "${path}" 2>/dev/null
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user