From 4db75aa36c99d7879c98a3a6ef98e412a32f21af Mon Sep 17 00:00:00 2001 From: dabruh <11458706-dabruh@users.noreply.gitlab.com> Date: Wed, 14 Dec 2022 20:28:08 +0100 Subject: [PATCH] Remove unused variable --- setup_system.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup_system.sh b/setup_system.sh index 3f535f5..55c554c 100755 --- a/setup_system.sh +++ b/setup_system.sh @@ -56,7 +56,7 @@ function is_laptop() { # Returns a comma-separated list of packages for one or more targets. # The packages file may contain multiple rows with the same target name. function get_packages() { - local packages pkg_file="$SCRIPT_DIR/.installer/packages" + local pkg_file="$SCRIPT_DIR/.installer/packages" for target in "$@"; do while read -r row; do @@ -149,7 +149,7 @@ function setup_homebrew() { } function setup_brew_formulas() { - local targets=("brew-formulas-any") packages + local targets=("brew-formulas-any") brew update || return 1 @@ -182,7 +182,7 @@ function setup_krew() { } function setup_krew_plugins() { - local targets=("krew-any") packages + local targets=("krew-any") if ! command -v kubectl-krew >/dev/null; then echo "WARN: Krew not installed: kubectl-krew"