You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
702 B
31 lines
702 B
#!/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'[@]}'
|