From c0a523308a124c188e8f5cb2ef136032d6262fd6 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Tue, 28 Jun 2022 09:23:53 -0400 Subject: [PATCH] remove command line options entirely! close #405, close #450 --- larbs.sh | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/larbs.sh b/larbs.sh index de0125d..b6726aa 100755 --- a/larbs.sh +++ b/larbs.sh @@ -1,23 +1,15 @@ #!/bin/sh + # Luke's Auto Rice Boostrapping Script (LARBS) # by Luke Smith # License: GNU GPLv3 ### OPTIONS AND VARIABLES ### -while getopts ":a:r:b:p:h" o; do case "${o}" in - 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 ;; - r) dotfilesrepo=${OPTARG} && git ls-remote "$dotfilesrepo" || exit 1 ;; - b) repobranch=${OPTARG} ;; - 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" +dotfilesrepo="https://github.com/lukesmithxyz/voidrice.git" +progsfile="https://raw.githubusercontent.com/LukeSmithxyz/LARBS/master/progs.csv" +aurhelper="yay" +repobranch="master" ### FUNCTIONS ###