18
									
								
								larbs.sh
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								larbs.sh
									
									
									
									
									
								
							@@ -1,23 +1,15 @@
 | 
				
			|||||||
#!/bin/sh
 | 
					#!/bin/sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Luke's Auto Rice Boostrapping Script (LARBS)
 | 
					# Luke's Auto Rice Boostrapping Script (LARBS)
 | 
				
			||||||
# by Luke Smith <luke@lukesmith.xyz>
 | 
					# by Luke Smith <luke@lukesmith.xyz>
 | 
				
			||||||
# License: GNU GPLv3
 | 
					# License: GNU GPLv3
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### OPTIONS AND VARIABLES ###
 | 
					### OPTIONS AND VARIABLES ###
 | 
				
			||||||
 | 
					
 | 
				
			||||||
while getopts ":a:r:b:p:h" o; do case "${o}" in
 | 
					dotfilesrepo="https://github.com/lukesmithxyz/voidrice.git"
 | 
				
			||||||
	h) printf "Optional arguments for custom use:\\n  -r: Dotfiles repository (local file or url)\\n  -p: Dependencies and programs csv (local file or url)\\n  -a: AUR helper (must have pacman-like syntax)\\n  -h: Show this message\\n" && exit 1 ;;
 | 
					progsfile="https://raw.githubusercontent.com/LukeSmithxyz/LARBS/master/progs.csv"
 | 
				
			||||||
	r) dotfilesrepo=${OPTARG} && git ls-remote "$dotfilesrepo" || exit 1 ;;
 | 
					aurhelper="yay"
 | 
				
			||||||
	b) repobranch=${OPTARG} ;;
 | 
					repobranch="master"
 | 
				
			||||||
	p) progsfile=${OPTARG} ;;
 | 
					 | 
				
			||||||
	a) aurhelper=${OPTARG} ;;
 | 
					 | 
				
			||||||
	*) printf "Invalid option: -%s\\n" "$OPTARG" && exit 1 ;;
 | 
					 | 
				
			||||||
esac done
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
[ -z "$dotfilesrepo" ] && dotfilesrepo="https://github.com/lukesmithxyz/voidrice.git"
 | 
					 | 
				
			||||||
[ -z "$progsfile" ] && progsfile="https://raw.githubusercontent.com/LukeSmithxyz/LARBS/master/progs.csv"
 | 
					 | 
				
			||||||
[ -z "$aurhelper" ] && aurhelper="yay"
 | 
					 | 
				
			||||||
[ -z "$repobranch" ] && repobranch="master"
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
### FUNCTIONS ###
 | 
					### FUNCTIONS ###
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user