wip
This commit is contained in:
parent
aaf8c2b72c
commit
d919302209
1 changed files with 0 additions and 11 deletions
11
utils.sh
11
utils.sh
|
@ -6,17 +6,6 @@ function prefix_time(){
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
function export_env(){
|
|
||||||
if [ $# -lt 2 ]; then
|
|
||||||
echo not enogh arguments for export_env
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
VAR=${1}
|
|
||||||
shift
|
|
||||||
echo ${VAR}=${@} >> ${UNBOX_ENV_FILE}
|
|
||||||
export ${VAR}=${@}
|
|
||||||
}
|
|
||||||
|
|
||||||
function mem_size(){
|
function mem_size(){
|
||||||
echo $(($(cat /proc/meminfo | grep MemTotal | awk '{print $2}')*1024))
|
echo $(($(cat /proc/meminfo | grep MemTotal | awk '{print $2}')*1024))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue