diff --git a/functions b/functions index 1f0f68e..b18011c 100644 --- a/functions +++ b/functions @@ -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 }