mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
silent curl
This commit is contained in:
parent
da08f164c4
commit
c0b3db4577
2 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ _hwclock() {
|
||||||
_timezone () {
|
_timezone () {
|
||||||
_SET_ZONE=""
|
_SET_ZONE=""
|
||||||
if ping -c1 www.google.com &>/dev/null; then
|
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
|
_SET_ZONE=1
|
||||||
fi
|
fi
|
||||||
while [[ -z "${_SET_ZONE}" ]]; do
|
while [[ -z "${_SET_ZONE}" ]]; do
|
||||||
|
|
|
@ -8,7 +8,7 @@ _select_mirror() {
|
||||||
## Download updated mirrorlist, if possible (only on x86_64)
|
## Download updated mirrorlist, if possible (only on x86_64)
|
||||||
if [[ "${_RUNNING_ARCH}" == "x86_64" ]]; then
|
if [[ "${_RUNNING_ARCH}" == "x86_64" ]]; then
|
||||||
_dialog --infobox "Downloading latest mirrorlist..." 3 40
|
_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
|
if grep -q '#Server = http:' /tmp/pacman_mirrorlist.txt; then
|
||||||
mv "${_MIRRORLIST}" "${_MIRRORLIST}.bak"
|
mv "${_MIRRORLIST}" "${_MIRRORLIST}.bak"
|
||||||
cp /tmp/pacman_mirrorlist.txt "${_MIRRORLIST}"
|
cp /tmp/pacman_mirrorlist.txt "${_MIRRORLIST}"
|
||||||
|
|
Loading…
Reference in a new issue