mirror of
				https://github.com/frebib/dotfiles.git
				synced 2024-06-14 12:57:23 +00:00 
			
		
		
		
	Improve install-yaourt, removing non-root user dependency
This commit is contained in:
		| @@ -1,21 +1,23 @@ | |||||||
| if [[ $EUID -eq 0 ]]; then | #if [[ $EUID -eq 0 ]]; then | ||||||
|     echo "You cannot run makepkg as root." | #    echo "You cannot run makepkg as root." | ||||||
|     echo "Please run this script again as a non-elevated user" | #    echo "Please run this script again as a non-elevated user" | ||||||
|     exit 1 | #    exit 1 | ||||||
| fi | #fi | ||||||
|  |  | ||||||
| # Install git dependency | # Install git, yajl dependencies | ||||||
| sudo pacman -S --asdeps git | sudo pacman -S --asdeps yajl git | ||||||
|  |  | ||||||
| cd /tmp | cd /tmp | ||||||
| git clone https://aur.archlinux.org/package-query.git | git clone https://aur.archlinux.org/package-query.git | ||||||
| cd package-query | cd package-query | ||||||
| makepkg -sri | sudo -u nobody makepkg -sr | ||||||
|  | sudo pacman -U `ls | grep package-query.*\.tar\.xz' | ||||||
|  |  | ||||||
| cd .. | cd .. | ||||||
| git clone https://aur.archlinux.org/yaourt.git | git clone https://aur.archlinux.org/yaourt.git | ||||||
| cd yaourt | cd yaourt | ||||||
| makepkg -sri | sudo -u nobody makepkg -sr | ||||||
|  | sudo pacman -U `ls | grep yaourt.*\.tar\.xz' | ||||||
|  |  | ||||||
| cd .. | cd .. | ||||||
| rm -rf package-query yaourt | rm -rf package-query yaourt | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user