From ee4dc72a0a5ed5958ea14d2c99bba79c9a732ec3 Mon Sep 17 00:00:00 2001 From: f Date: Thu, 3 Mar 2022 14:25:27 -0300 Subject: [PATCH] =?UTF-8?q?no=20hardcodear=20el=20directorio=20de=20instal?= =?UTF-8?q?aci=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }