Calculate size of directories on /hdd too

This commit is contained in:
myvesta 2025-04-24 22:31:47 +02:00 committed by myvesta
parent 8bdfade3d4
commit 0d86e2ca40
5 changed files with 29 additions and 4 deletions

View file

@ -359,6 +359,17 @@ search_objects() {
IFS="$OLD_IFS"
}
# List objects
list_objects() {
OLD_IFS="$IFS"
IFS=$'\n'
for line in $(cat $USER_DATA/$1.conf); do
eval $line
eval echo \$$2
done
IFS="$OLD_IFS"
}
# Get user value
get_user_value() {
grep "^${1//$/}=" $USER_DATA/user.conf |awk -F "'" '{print $2}'