silent curl

This commit is contained in:
Tobias Powalowski 2023-07-21 21:45:58 +02:00
parent da08f164c4
commit c0b3db4577
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ _hwclock() {
_timezone () {
_SET_ZONE=""
if ping -c1 www.google.com &>/dev/null; then
_ZONE="$(curl http://ip-api.com/csv/?fields=timezone)"
_ZONE="$(curl -s http://ip-api.com/csv/?fields=timezone)"
_SET_ZONE=1
fi
while [[ -z "${_SET_ZONE}" ]]; do

View file

@ -8,7 +8,7 @@ _select_mirror() {
## Download updated mirrorlist, if possible (only on x86_64)
if [[ "${_RUNNING_ARCH}" == "x86_64" ]]; then
_dialog --infobox "Downloading latest mirrorlist..." 3 40
${_DLPROG} "https://www.archlinux.org/mirrorlist/?country=$(curl http://ip-api.com/csv/?fields=countryCode)&protocol=https&ip_version=4&ip_version=6&use_mirror_status=on" -O /tmp/pacman_mirrorlist.txt
${_DLPROG} "https://www.archlinux.org/mirrorlist/?country=$(curl -s http://ip-api.com/csv/?fields=countryCode)&protocol=https&ip_version=4&ip_version=6&use_mirror_status=on" -O /tmp/pacman_mirrorlist.txt
if grep -q '#Server = http:' /tmp/pacman_mirrorlist.txt; then
mv "${_MIRRORLIST}" "${_MIRRORLIST}.bak"
cp /tmp/pacman_mirrorlist.txt "${_MIRRORLIST}"