vdotfiles

Cem's Dotfiles for Void Linux
git clone git://git.ckyln.com/vdotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit fcd48816444470bb3f6ce5aac174ddbdf52e9cb6
parent 7f50782a11cc9a707a2788bdf733913443928690
Author: Cem Keylan <cem@ckyln.com>
Date:   Wed,  2 Oct 2019 14:11:10 +0300

merge to local

Diffstat:
M.local/bin/updot | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/.local/bin/updot b/.local/bin/updot @@ -15,6 +15,7 @@ usage: ${0##*/} [options] -r <repo url> Use an alternative dotfiles repo -p <progs.csv> Use an alternative progs.csv file (must be local) -P <filename> Download progs.csv and exit + -d Update dotfiles only -h/--help Print this help message @@ -29,11 +30,12 @@ if [ "$1" = "-h" ] || [ "$1" = "--help" ] ; then exit fi -while getopts ':p::r::P:' flag; do +while getopts ':p::r::P:d' flag; do case $flag in P) curl -sLo $OPTARG https://raw.githubusercontent.com/cemkeylan/carbs/master/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) dotonly=1 ;; :) die '%s: option requires argument -- '\''%s'\' "${0##*/}" "$OPTARG" ;; ?) die '%s: invalid option -- '\''%s'\' "${0##*/}" "$OPTARG" ;; esac @@ -116,6 +118,6 @@ EOF } welcomepage -installcsv +[ -z $dotonly ] && installcsv dotfilesinstall $dotfiles finalize