carbs

Cem's Auto Rice Bootstrapping Scripts
git clone git://git.ckyln.com/carbs.git
Log | Files | Refs | README | LICENSE

commit c70d807fd57f32c7e1e1dcd72e42a46c505c5767
parent 0539a28d0bdfa85d8b5b90a719b24b782b97ca4c
Author: Cem Keylan <cem@ckyln.com>
Date:   Mon, 23 Sep 2019 19:34:20 +0300

download progs.csv

Diffstat:
Mcarbs | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/carbs b/carbs @@ -38,6 +38,8 @@ usage: ${0##*/} [options] -r <repo url> Use an alternative dotfiles repo -d <location> Specify another place to install dotfiles -n Run the script noninteractively + -P <filename> Download progs.csv and exit + -h/--help Print this help message CARBS installs a functional desktop environment. @@ -50,8 +52,9 @@ if [ "$1" = "-h" ] || [ "$1" = "--help" ] ; then exit fi -while getopts ':p::d::r:n' flag; do +while getopts ':p::d::r:n:P:' flag; do case $flag in + P) curl -sLo $OPTARG git.ckyln.com/carbs/plain/progs.csv && exit || die 'Could not download progs.csv' ;; p) [ -e $OPTARG ] && progs=$OPTARG || die 'Could not find progs.csv file' ;; r) git ls-remote $OPTARG >/dev/null 2>&1 && dotfiles=$OPTARG || die 'Could not find repo' ;; d) [ -d $OPTARG ] && targetdir=$OPTARG || die 'Target location %s does not exist or is not a directory' "$OPTARG" ;;