Read apps from a file and loop over them
Reads the apps to be installed my-apps.txt and installed. Checks first if there is a my-apps.txt file. Need to make a better exit if there isn't
This commit is contained in:
parent
f6ad8c0558
commit
839152facd
|
@ -1,5 +1,6 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
|
||||
##########################################################################
|
||||
#
|
||||
# ____ ___ __ __ ____ _____ / /_ ____ _____ ____ _____
|
||||
|
@ -14,11 +15,22 @@
|
|||
|
||||
# check if I'm logged on to the tilde.team, if so. Dont run this stuff
|
||||
if [ $HOSTNAME != 'tilde' ]; then
|
||||
sudo apt install curl
|
||||
sudo apt install lolcat
|
||||
sudo apt install figlet
|
||||
sudo apt install lynx
|
||||
sudo apt install cowsay
|
||||
fi
|
||||
# Can I check for a a file of apps, and if it's there, read it into $APPS?
|
||||
|
||||
if [ -f ~/mydev/my-dotfiles/my-apps.txt ]; then
|
||||
while read APPS
|
||||
do
|
||||
echo "\n******************************************\n Installing: $APPS"
|
||||
sudo apt install $APPS
|
||||
done < my-apps.txt
|
||||
fi # End If apps file lookup
|
||||
|
||||
# for APPS in curl lolcat figlet cowsay lynx
|
||||
# do
|
||||
# sudo apt install $APPS
|
||||
# echo "Intalling $APPS"
|
||||
# echo " "
|
||||
# done
|
||||
|
||||
fi # endif HOSTNAME
|
||||
|
||||
|
|
Loading…
Reference in New Issue