From f337889936897ed11fc87e7f9c3630420e79725c Mon Sep 17 00:00:00 2001 From: Jeff Putsch Date: Wed, 13 Dec 2023 13:51:43 -0800 Subject: [PATCH] udpate per PR code review --- src/git/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/git/install.sh b/src/git/install.sh index 4a4f160..3afcb54 100644 --- a/src/git/install.sh +++ b/src/git/install.sh @@ -94,7 +94,7 @@ receive_gpg_keys() { } pkg_mgr_update() { - if type apt >/dev/null 2>&1; then + if [ ${INSTALL_CMD} = "apt-get" ]; then if [ "$(find /var/lib/apt/lists/* | wc -l)" = "0" ]; then echo "Running apt-get update..." ${INSTALL_CMD} update -y