no hardcodear el directorio de instalación

This commit is contained in:
f 2022-03-03 14:25:27 -03:00
parent 0f0a743123
commit ee4dc72a0a

View file

@ -1,8 +1,8 @@
get_stack () {
if [[ ! -z $1 && $1 == "wc" ]];then
ls /opt/nodemecu/stack | wc -l
ls $install_dir/stack | wc -l
else
ls /opt/nodemecu/stack | tail -1
ls $install_dir/stack | tail -1
fi
}