From e7f94e54641e281e4e2bdacdf16a8b0bef972042 Mon Sep 17 00:00:00 2001 From: araison Date: Sun, 21 Jan 2024 19:54:19 +0100 Subject: [PATCH] Fixing bug --- setup/programs/package_manager/apt/packages.sh | 6 ++++-- setup/programs/package_manager/brew/packages.sh | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/setup/programs/package_manager/apt/packages.sh b/setup/programs/package_manager/apt/packages.sh index 13f3958..5c2515a 100644 --- a/setup/programs/package_manager/apt/packages.sh +++ b/setup/programs/package_manager/apt/packages.sh @@ -1,3 +1,5 @@ +#!/bin/bash + function install { which $1 &> /dev/null @@ -11,11 +13,11 @@ function install { -declare -a apt_packages = ( "curl" "exfat-utils" "git" "htop" "tmux" "gimp" "inkscape" "texlive-full" "stow" "vlc" "blender" "gparted" "docker.io" "docker-compose" "python3-pip" "wget" "tree" "universal-ctags" ) +apt_packages=( "curl" "exfat-utils" "git" "htop" "tmux" "gimp" "inkscape" "texlive-full" "stow" "vlc" "blender" "gparted" "docker.io" "docker-compose" "python3-pip" "wget" "tree" "universal-ctags" ) sudo apt update -for package in "${apt_packages[@]}$" +for package in "${apt_packages}$" do install ${package} done diff --git a/setup/programs/package_manager/brew/packages.sh b/setup/programs/package_manager/brew/packages.sh index 6302be5..08a9928 100644 --- a/setup/programs/package_manager/brew/packages.sh +++ b/setup/programs/package_manager/brew/packages.sh @@ -1,3 +1,5 @@ +#!/bin/bash + function install { which $1 &> /dev/null