-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpossible_functions.sh
More file actions
35 lines (26 loc) · 1.18 KB
/
possible_functions.sh
File metadata and controls
35 lines (26 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#############################################################################################
####################################### FUNCTIONS #######################################
#############################################################################################
# Optional package install
optional_install() {
read -r -p "Do you want to install $optionalpkg? [y/N] " response
if [[ "$response" =~ ^([yY][eE][sS]|[yY])$ ]]
then
echo "
Installing $optionalpkg
"
sudo apt install $optionalpkg
echo "
______________________________________________________________________________________________________
$optionalpkg has been installed
______________________________________________________________________________________________________
"
else
echo "$optionalpkg won't be installed"
fi
}
#############################################################################################
####################################### VARIBALES #######################################
#############################################################################################
# List of optional packages
optionalpkgs=("") # TODO