mirror of
https://github.com/myvesta/vesta
synced 2025-07-05 20:41:53 -07:00
Calculate size of directories on /hdd too
This commit is contained in:
parent
8bdfade3d4
commit
0d86e2ca40
5 changed files with 29 additions and 4 deletions
11
func/main.sh
11
func/main.sh
|
@ -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}'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue