1-get-initial-setup-working #2
							
								
								
									
										7
									
								
								setup.sh
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								setup.sh
									
									
									
									
									
								
							| @@ -388,9 +388,14 @@ function create_unpriv_user () { | |||||||
| } | } | ||||||
|  |  | ||||||
| function unleash_makepkg () { | function unleash_makepkg () { | ||||||
|  |     local path_prefix | ||||||
|  |     path_prefix='/mnt' | ||||||
|  |     if we_are_changerooted; then | ||||||
|  |         path_prefix='' | ||||||
|  |     fi | ||||||
|     sed -ri \ |     sed -ri \ | ||||||
|         -e 's'$'\x1''^(#?(MAKEFLAGS=))[^\r\n\f]*'$'\x1''\2"-j$(nproc --ignore 1)"'$'\x1''g' \ |         -e 's'$'\x1''^(#?(MAKEFLAGS=))[^\r\n\f]*'$'\x1''\2"-j$(nproc --ignore 1)"'$'\x1''g' \ | ||||||
|         '/mnt/etc/makepkg.conf' |         "${path_prefix}"'/etc/makepkg.conf' | ||||||
| } | } | ||||||
|  |  | ||||||
| function get_aur_helper () { | function get_aur_helper () { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user