Skip to content

Commit bdeae82

Browse files
committed
build: Try avoid y/n prompts
1 parent 1975481 commit bdeae82

5 files changed

+18
-18
lines changed

install-git-and-ftp-server.sh

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
echo === git and git lfs ===
22

3-
sudo apt-get update
3+
sudo apt-get --yes --force-yes update
44

5-
sudo apt install git
5+
sudo apt --yes --force-yes install git
66

77
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
8-
sudo apt-get install git-lfs
8+
sudo apt-get --yes --force-yes install git-lfs
99
git lfs install
1010

1111
echo === yarn ===
12-
sudo apt install curl
12+
sudo apt --yes --force-yes install curl
1313

1414
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
1515

1616
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
1717

18-
sudo apt update
18+
sudo apt --yes --force-yes update
1919

20-
sudo apt install yarn
20+
sudo apt --yes --force-yes install yarn
2121

2222
yarn --version
2323

2424
echo === net-tools for ifconfig ===
25-
sudo apt install net-tools
25+
sudo apt --yes --force-yes install net-tools
2626

2727
echo === vsftpd for ftp server ===
28-
sudo apt install vsftpd
28+
sudo apt --yes --force-yes install vsftpd
2929

30-
sudo apt-get install filezilla
30+
sudo apt-get --yes --force-yes install filezilla
3131

3232
sudo cp ./config/ftp/vsftpd.conf /etc/vsftpd.conf
3333
sudo cp ./config/ftp/vsftpd.chroot_list /etc/vsftpd.chroot_list
@@ -37,8 +37,8 @@ sudo systemctl restart vsftpd
3737
mkdir ~/public_ftp
3838

3939
echo === dot ===
40-
sudo apt install graphviz
40+
sudo apt --yes --force-yes install graphviz
4141

4242
echo === npm ===
43-
sudo apt install npm
43+
sudo apt --yes --force-yes install npm
4444

install-visual-code.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make
3-
sudo apt-get update
4-
sudo apt-get install ubuntu-make
3+
sudo apt-get --yes --force-yes update
4+
sudo apt-get --yes --force-yes install ubuntu-make
55

66
umake ide visual-studio-code
77

install-with-docker.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/usr/bin/env bash
22

33
{ # this ensures the entire script is downloaded #
4-
sudo apt-get update
4+
sudo apt-get --yes --force-yes update
55

6-
sudo apt install git
6+
sudo apt --yes --force-yes install git
77

88
git clone https://github.com/mrseanryan/ubuntu-scripts.git
99

install-xclip.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# xclip can read from a file and populate the clipboard
2-
sudo apt install xclip
2+
sudo apt --yes --force-yes install xclip
33

install.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/usr/bin/env bash
22

33
{ # this ensures the entire script is downloaded #
4-
sudo apt-get update
4+
sudo apt-get --yes --force-yes update
55

6-
sudo apt install git
6+
sudo apt --yes --force-yes install git
77

88
git clone https://github.com/mrseanryan/ubuntu-scripts.git
99

0 commit comments

Comments
 (0)