mirror of
https://github.com/SinTan1729/random.git
synced 2024-12-25 12:58:35 -06:00
fix: Running rate-mirrors in non-sudo mode
This commit is contained in:
parent
9de4d7ffe2
commit
294ec74155
1 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ update_arch() {
|
|||
echo "Ranking Arch mirrors"
|
||||
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
|
||||
sudo mkdir -p /etc/pacman.d/mirrorlist-backup
|
||||
|
@ -33,7 +33,7 @@ update_eos() {
|
|||
echo "Ranking EndeavourOS mirrors"
|
||||
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
|
||||
sudo mkdir -p /etc/pacman.d/mirrorlist-backup
|
||||
|
|
Loading…
Reference in a new issue