Skip to content

Commit f76c722

Browse files
authored
Silence output for PHP repository setup commands
Redirect output of wget and echo commands to /dev/null.
1 parent b5a4a1c commit f76c722

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

install-photobooth.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -708,8 +708,9 @@ function prepare_php_environment() {
708708
# Add PHP repository based on OS
709709
if [[ "${DEBIAN[*]}" =~ $OS_CODENAME ]]; then
710710
info "PHP preparation" "Adding Sury PHP repository for Debian."
711-
wget -qO /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
712-
echo "deb https://packages.sury.org/php/ $OS_CODENAME main" | tee /etc/apt/sources.list.d/php.list
711+
wget -qO /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg >/dev/null 2>&1
712+
echo "deb https://packages.sury.org/php/ $OS_CODENAME main" \
713+
| tee /etc/apt/sources.list.d/php.list >/dev/null 2>&1
713714
elif [[ "$OS_CODENAME" == "mantic" ]]; then
714715
info "PHP preparation" "No source lists available for 'mantic'."
715716
else

0 commit comments

Comments
 (0)