Browse Source

Add missing sudo to binary install instructions (#2525)

Alice Jacka 6 months ago
parent
commit
3003f1667c
1 changed files with 4 additions and 4 deletions
  1. 4 4
      README.md

+ 4 - 4
README.md

@@ -30,6 +30,8 @@ Yet Another Yogurt - An AUR Helper Written in Go
 
 
 If you are migrating from another AUR helper, you can simply install Yay with that helper.
 If you are migrating from another AUR helper, you can simply install Yay with that helper.
 
 
+⚠️ We are using `sudo` in these examples, you can switch that out for a different privilege escalation tool.
+
 ### Source
 ### Source
 
 
 The initial installation of Yay can be done by cloning the PKGBUILD and
 The initial installation of Yay can be done by cloning the PKGBUILD and
@@ -52,13 +54,11 @@ sudo pacman -S --needed git base-devel && git clone https://aur.archlinux.org/ya
 
 
 ### Binary
 ### Binary
 
 
-⚠️ We are using `sudo` in this example you can switch that out for a different privilage escalation tool.
-
 If you do not want to compile yay yourself you can use the builds generated by
 If you do not want to compile yay yourself you can use the builds generated by
 GitHub Actions.
 GitHub Actions.
 
 
 ```sh
 ```sh
-pacman -S --needed git base-devel
+sudo pacman -S --needed git base-devel
 git clone https://aur.archlinux.org/yay-bin.git
 git clone https://aur.archlinux.org/yay-bin.git
 cd yay-bin
 cd yay-bin
 makepkg -si
 makepkg -si
@@ -67,7 +67,7 @@ makepkg -si
 If you want to do all of this at once, we can chain the commands like so:
 If you want to do all of this at once, we can chain the commands like so:
 
 
 ```sh
 ```sh
-pacman -S --needed git base-devel && git clone https://aur.archlinux.org/yay-bin.git && cd yay-bin && makepkg -si
+sudo pacman -S --needed git base-devel && git clone https://aur.archlinux.org/yay-bin.git && cd yay-bin && makepkg -si
 ```
 ```
 
 
 ### Other distributions
 ### Other distributions