Doesn't work with yay
This commit is contained in:
parent
6c656766f8
commit
f4ea58bdd0
@ -14,7 +14,6 @@ fzf_args=(
|
|||||||
--color 'pointer:green,marker:green'
|
--color 'pointer:green,marker:green'
|
||||||
)
|
)
|
||||||
|
|
||||||
yay -Sy
|
|
||||||
pkg_names=$(yay -Slqa | fzf "${fzf_args[@]}")
|
pkg_names=$(yay -Slqa | fzf "${fzf_args[@]}")
|
||||||
|
|
||||||
if [[ -n "$pkg_names" ]]; then
|
if [[ -n "$pkg_names" ]]; then
|
||||||
|
@ -41,6 +41,5 @@ fi
|
|||||||
# Allow repository index updates without sudo
|
# Allow repository index updates without sudo
|
||||||
sudo tee /etc/sudoers.d/repositories >/dev/null <<EOF
|
sudo tee /etc/sudoers.d/repositories >/dev/null <<EOF
|
||||||
$USER ALL=(ALL) NOPASSWD: /usr/bin/pacman -Sy
|
$USER ALL=(ALL) NOPASSWD: /usr/bin/pacman -Sy
|
||||||
$USER ALL=(ALL) NOPASSWD: /usr/bin/yay -Sy
|
|
||||||
EOF
|
EOF
|
||||||
sudo chmod 440 /etc/sudoers.d/repositories
|
sudo chmod 440 /etc/sudoers.d/repositories
|
||||||
|
@ -2,6 +2,5 @@ echo "Allow pacman -Sy without sudo to easier installs"
|
|||||||
|
|
||||||
sudo tee /etc/sudoers.d/repositories >/dev/null <<EOF
|
sudo tee /etc/sudoers.d/repositories >/dev/null <<EOF
|
||||||
$USER ALL=(ALL) NOPASSWD: /usr/bin/pacman -Sy
|
$USER ALL=(ALL) NOPASSWD: /usr/bin/pacman -Sy
|
||||||
$USER ALL=(ALL) NOPASSWD: /usr/bin/yay -Sy
|
|
||||||
EOF
|
EOF
|
||||||
sudo chmod 440 /etc/sudoers.d/repositories
|
sudo chmod 440 /etc/sudoers.d/repositories
|
||||||
|
Loading…
x
Reference in New Issue
Block a user