dep

Package manager for embedded C libraries
git clone git://git.finwo.net/app/dep
Log | Files | Refs | README | LICENSE

commit 5fd45b4b63fcc86e027d707de9736863274d0814
parent 08f40106a1cca73324aa52dd9178b637dd321c7e
Author: finwo <finwo@pm.me>
Date:   Thu, 23 Feb 2023 18:51:08 +0100

Made name/origin/ISNEW vars in cmd_install_dep local to prevent override

Diffstat:
Mdist/dep | 6+++---
Msrc/command/install/index.sh | 6+++---
2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/dist/dep b/dist/dep @@ -298,11 +298,11 @@ function cmd_install_reset_generated { } function cmd_install_dep { - name=$1 - origin=$2 + local name=$1 + local origin=$2 # Full install if missing - ISNEW= + local ISNEW= if [ ! -d "${CMD_INSTALL_PKG_DEST}/${name}" ]; then ISNEW="yes" diff --git a/src/command/install/index.sh b/src/command/install/index.sh @@ -68,11 +68,11 @@ function cmd_install_reset_generated { } function cmd_install_dep { - name=$1 - origin=$2 + local name=$1 + local origin=$2 # Full install if missing - ISNEW= + local ISNEW= if [ ! -d "${CMD_INSTALL_PKG_DEST}/${name}" ]; then ISNEW="yes"