Update system-update.sh

fixed issue in if statement
This commit is contained in:
Diego Pertierra 2024-07-14 01:18:53 +02:00 committed by GitHub
parent 00fdd8cd07
commit f0bdcafefa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -80,7 +80,7 @@ fastUpdate() {
# If for some reason DTYPE is still unknown use always arch so the rate-mirrors does not fail # If for some reason DTYPE is still unknown use always arch so the rate-mirrors does not fail
local dtype_local=${DTYPE} local dtype_local=${DTYPE}
if $DTYPE == "unknown"; then if [ ${DTYPE} == "unknown" ]; then
dtype_local="arch" dtype_local="arch"
fi fi
sudo rate-mirrors --top-mirrors-number-to-retest=5 --disable-comments --save /etc/pacman.d/mirrorlist --allow-root ${dtype_local} sudo rate-mirrors --top-mirrors-number-to-retest=5 --disable-comments --save /etc/pacman.d/mirrorlist --allow-root ${dtype_local}