#!/bin/bash common_programs_list=(\ htop \ git \ fish \ mc \ sudo \ unzip \ dmenu \ cmake \ make \ gcc \ python3 \ pulseaudio \ pulseaudio-alsa \ alsa \ alsa-utils \ exa) main_dir=$PWD common_programs=$( IFS=$'\n'; echo "${common_programs_list[*]}" ) system=$(sudo cat /etc/os-release | sed -n 3p) echo $main_dir if [[ $system == *"arch"* ]] then installCMD="pacman -S" elif [[ $system == *"debian"* ]] then installCMD="apt install" fi echo $system