Skip to content

Commit

Permalink
fix(package-service): solve sudo problem when installing yay packages
Browse files Browse the repository at this point in the history
  • Loading branch information
yunielrc committed Sep 22, 2023
1 parent 1bbd87a commit 6d0d1ea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ ydf::package_service::__instruction_@yay() {
# select the first no empty line
local -r yay_pkg_name="$(ydf::utils::text_file_to_words @yay)"

eval sudo -H yay -Syu --noconfirm --needed "${yay_pkg_name:-"$pkg_name"}"
eval yay -Syu --noconfirm --needed "${yay_pkg_name:-"$pkg_name"}"
}

#
Expand Down

0 comments on commit 6d0d1ea

Please sign in to comment.