1
0
Fork 0
mirror of https://github.com/SinTan1729/random.git synced 2024-12-26 13:18:35 -06:00

fix: Running rate-mirrors in non-sudo mode

This commit is contained in:
Sayantan Santra 2024-03-21 17:43:19 -05:00
parent 9de4d7ffe2
commit 294ec74155
Signed by: SinTan1729
GPG key ID: EB3E68BFBA25C85F

View file

@ -14,7 +14,7 @@ update_arch() {
echo "Ranking Arch mirrors" echo "Ranking Arch mirrors"
echo "====================================================================================================" echo "===================================================================================================="
rate-mirrors --protocol=https --save=$TMPFILE_ARCH arch sudo -u sintan rate-mirrors --protocol=https --save=$TMPFILE_ARCH arch
# Create backup directory if not present already # Create backup directory if not present already
sudo mkdir -p /etc/pacman.d/mirrorlist-backup sudo mkdir -p /etc/pacman.d/mirrorlist-backup
@ -33,7 +33,7 @@ update_eos() {
echo "Ranking EndeavourOS mirrors" echo "Ranking EndeavourOS mirrors"
echo "====================================================================================================" echo "===================================================================================================="
rate-mirrors --protocol=https --save=$TMPFILE_EOS endeavouros sudo -u sintan rate-mirrors --protocol=https --save=$TMPFILE_EOS endeavouros
# Create backup directory if not present already # Create backup directory if not present already
sudo mkdir -p /etc/pacman.d/mirrorlist-backup sudo mkdir -p /etc/pacman.d/mirrorlist-backup