Skip to content

Commit d79aa7c

Browse files
authored
force y on pacman install
1 parent f2ffcfe commit d79aa7c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

useful-tools/make-aur-package.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ _info_msg() {
1919
}
2020

2121
_prepare() {
22-
for d in base-devel git; do
22+
for d in base-devel git yes; do
2323
if ! pacman -Q "$d" 2>/dev/null; then
2424
_info_msg "Adding build dependency: $d"
2525
pacman -S --noconfirm "$d"
@@ -171,9 +171,9 @@ ls -la ./
171171

172172
_info_msg "Installing package..."
173173
if [ "$OVERWRITE_CONFLICTS" = 1 ]; then
174-
pacman --noconfirm -U ./*.pkg.tar.* --overwrite '*'
174+
yes | pacman -U ./*.pkg.tar.* --overwrite '*'
175175
else
176-
pacman --noconfirm -U ./*.pkg.tar.*
176+
yes | pacman -U ./*.pkg.tar.*
177177
fi
178178

179179
_info_msg "All done!"

0 commit comments

Comments
 (0)