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.

52 lines
870 B

#!/bin/bash
common_programs_list=(\
htop \
tmux \
git \
fish \
mc \
wget \
sudo \
unzip \
dmenu \
cmake \
make \
gcc \
python3 \
pulseaudio \
pulseaudio-alsa \
alsa \
alsa-utils \
exa)
os_list=(Debian Arch Raspberry)
os_list_count=${#os_list[@]}
answer=$(($os_list_count + 1))
main_dir=$PWD
common_programs=$( IFS=$'\n'; echo "${common_programs_list[*]}" )
echo "###########################################"
echo "# Wellcome to my Linux instalation Script #"
echo "###########################################"
echo "Please Select your OS"
for i in "${!os_list[@]}";
do
echo "[$(($i + 1))] ${os_list[$i]}"
done
echo $answer
while (( answer > 3 ))
do
read -p "Select your os or ( $(($os_list_count + 1)) to quit ) " answer
done
#Checks if the goven progrramm exists.
if ! command -v foo &> /dev/null
then
echo "<the_command> could not be found"
exit
fi