dotfiles

Cem's Dotfiles
git clone git://git.ckyln.com/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 2a0677d8913145eff274beb0f0c16449e9a7e099
parent 266e19fd407b7dc907dffd4f15e0e3a69a4d936c
Author: Cem Keylan <cem@ckyln.com>
Date:   Mon, 11 Nov 2019 11:27:37 +0300

stability fixes for updatecarbs and updot

Diffstat:
M.local/bin/updatecarbs | 3+--
M.local/bin/updot | 8+++++---
2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/.local/bin/updatecarbs b/.local/bin/updatecarbs @@ -24,8 +24,7 @@ if [ "$1" = "-h" ] || [ "$1" = "--help" ] ; then fi -OPTIONS="$@" script="$(mktemp)" cat "$HOME"/.local/bin/updot > "$script" chmod +x "$script" -"$script" "$OPTIONS" +"$script" "$@" diff --git a/.local/bin/updot b/.local/bin/updot @@ -5,8 +5,8 @@ error() { out "ERROR: $@" ; } >&2 msg() { out "==> $@" ; } die() { error "$@"; exit 1; } -command -V pacman >/dev/null 2>&1 && carbs="carbs" && alias install="sudo pacman -S --noconfirm --needed" -command -V xbps-install >/dev/null 2>&1 && carbs="vcarbs" && alias install="sudo xbps-install -y" +pacman --version >/dev/null 2>&1 && carbs="carbs" && alias install="sudo pacman -S --noconfirm --needed" && defdot="git://git.ckyln.com/dotfiles" +xbps-install --version >/dev/null 2>&1 && carbs="vcarbs" && alias install="sudo xbps-install -y" && defdot="git://git.ckyln.com/vdotfiles" while getopts ':p::r::P:d' flag; do case $flag in @@ -21,7 +21,7 @@ done [ -z "$dotonly" ] && [ -z "$carbs" ] && \ die "It seems like you don't use Arch Linux or Void Linux\\nYou might want to run updot -d" -[ -z "$dotfiles" ] && dotfiles="git://git.ckyln.com/dotfiles" +[ -z "$dotfiles" ] && dotfiles="${defdot-git://git.ckyln.com/dotfiles}" [ -z "$progs" ] && curl -sLo /tmp/progs.csv https://raw.githubusercontent.com/cemkeylan/carbs/master/progs.csv && progs="/tmp/progs.csv" welcomepage() { @@ -41,6 +41,8 @@ welcomepage() { Welcome to Cem's Auto-Rice Bootstrapping Script! +Dotfiles Repository: $dotfiles + WARNING: This update might break your personal changes, so it is highly recommended that you backup your .config