8 lines
247 B
Bash
8 lines
247 B
Bash
echo "Allow pacman -Sy without sudo to easier installs"
|
|
|
|
sudo tee /etc/sudoers.d/repositories >/dev/null <<EOF
|
|
$USER ALL=(ALL) NOPASSWD: /usr/bin/pacman -Sy
|
|
$USER ALL=(ALL) NOPASSWD: /usr/bin/yay -Sy
|
|
EOF
|
|
sudo chmod 440 /etc/sudoers.d/repositories
|