Skip to content

Commit 38ea2b0

Browse files
authored
Merge pull request #263 from pkgxdev/no-yes
Remove the --yes from what we suggest to the user
2 parents f2a306b + 7bdb169 commit 38ea2b0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

installer.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ _install_pre_reqs() {
5454
export DEBIAN_FRONTEND=noninteractive
5555
cmd=$1
5656
shift
57-
$SUDO apt-get $cmd -qq -o=Dpkg::Use-Pty=0 $@
57+
$SUDO apt-get $cmd --yes -qq -o=Dpkg::Use-Pty=0 $@
5858
}
5959
else
6060
apt() {
@@ -78,7 +78,7 @@ _install_pre_reqs() {
7878
fi
7979

8080
if test -f /etc/debian_version; then
81-
apt update --yes
81+
apt update
8282

8383
# minimal but required or networking doesn’t work
8484
# https://packages.debian.org/buster/all/netbase/filelist
@@ -92,13 +92,13 @@ _install_pre_reqs() {
9292

9393
case $(cat /etc/debian_version) in
9494
jessie/sid|8.*|stretch/sid|9.*)
95-
apt install --yes libc-dev libstdc++-4.8-dev libgcc-4.7-dev $A $B $C;;
95+
apt install libc-dev libstdc++-4.8-dev libgcc-4.7-dev $A $B $C;;
9696
buster/sid|10.*)
97-
apt install --yes libc-dev libstdc++-8-dev libgcc-8-dev $A $B $C;;
97+
apt install libc-dev libstdc++-8-dev libgcc-8-dev $A $B $C;;
9898
bullseye/sid|11.*)
99-
apt install --yes libc-dev libstdc++-10-dev libgcc-9-dev $A $B $C;;
99+
apt install libc-dev libstdc++-10-dev libgcc-9-dev $A $B $C;;
100100
bookworm/sid|12.*|*)
101-
apt install --yes libc-dev libstdc++-11-dev libgcc-11-dev $A $B $C;;
101+
apt install libc-dev libstdc++-11-dev libgcc-11-dev $A $B $C;;
102102
esac
103103
elif test -f /etc/fedora-release; then
104104
$SUDO yum --assumeyes install libatomic

0 commit comments

Comments
 (0)