Skip to content

Commit

Permalink
build-scripts: Fix yay detection
Browse files Browse the repository at this point in the history
Change-Id: Ibaf767ad71be230b92ee3a97f1dedcff1bc917d5
  • Loading branch information
someone5678 committed Apr 10, 2024
1 parent 803af8c commit 570e986
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .configs/scripts/func.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ init_git_account () {
update_pkg () {
# prompt for root and install necessary packages
if [ -f "/etc/arch-release" ]; then
if ! yay -v > /dev/null 2>&1; then
if ! yay -h > /dev/null 2>&1; then
echo "yay command not installed! Start building..."
sudo pacman -Sy
sudo pacman -S --needed base-devel git
Expand Down

0 comments on commit 570e986

Please sign in to comment.