Fixing small stuff.

This commit is contained in:
Faerbit 2015-11-17 12:28:58 +01:00
parent a9910ed093
commit d9f5e78231

View File

@ -98,12 +98,13 @@ delete-old-archives() {
sudo tarsnap -d -f "$archive"
fi
done
}
update-mirrors() {
if [[ $(uname -m) != "x86_64" ]]
then
echo "Not supported on this architecture."
else
sh -c "reflector -p http -l 50 --sort rate | tee /etc/pacman.d/mirrorlist"
sudo sh -c "reflector -p http -l 50 --sort rate | tee /etc/pacman.d/mirrorlist"
fi
}