no hardcodear el directorio de instalación
This commit is contained in:
parent
0f0a743123
commit
ee4dc72a0a
1 changed files with 2 additions and 2 deletions
|
@ -1,8 +1,8 @@
|
||||||
get_stack () {
|
get_stack () {
|
||||||
if [[ ! -z $1 && $1 == "wc" ]];then
|
if [[ ! -z $1 && $1 == "wc" ]];then
|
||||||
ls /opt/nodemecu/stack | wc -l
|
ls $install_dir/stack | wc -l
|
||||||
else
|
else
|
||||||
ls /opt/nodemecu/stack | tail -1
|
ls $install_dir/stack | tail -1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue