#!/bin/bash INSTALL_SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) source $INSTALL_SCRIPT_DIR/config.sh source $INSTALL_SCRIPT_DIR/../scripts/graphics.sh source $INSTALL_SCRIPT_DIR/../scripts/check_installed.sh install_from_list() { theList=("$@") graphics_indication "Common installations these programs are OS independent from" for i in "${!theList[@]}"; do currentProg=${theList[$i]} if [ $( check_installed $currentProg ) -eq 0 ] then echo "installing $currentProg" else echo "skipping $currentProg" fi done } OS="debian" buff="default_installs_$OS" listToinstall='${'$buff'[@]}' echo $listToinstall install_from_list '${'$buff'[@]}'