From 03aacb0639379734fef378330ac7603d4a0b7cb0 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Sun, 19 Mar 2023 02:10:04 +0200 Subject: [PATCH] dotbot: fix glob error in python < v3.5 --- install-without-plugins | 26 ++++++++++++++++++++++++++ install.conf.yaml | 9 ++++----- 2 files changed, 30 insertions(+), 5 deletions(-) create mode 100755 install-without-plugins diff --git a/install-without-plugins b/install-without-plugins new file mode 100755 index 0000000..c099329 --- /dev/null +++ b/install-without-plugins @@ -0,0 +1,26 @@ +#!/usr/bin/env bash + +set -e + +CONFIG="install.conf.yaml" +DOTBOT_DIR="dotbot" + +DOTBOT_BIN="bin/dotbot" +BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" + +cd "$BASEDIR" +git submodule sync --quiet --recursive +git submodule update --init --recursive + +"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" \ + -d "${BASEDIR}" \ + -c "${CONFIG}" \ + "${@}" + +# --plugin-dir=dotbot-plugins/dotbot-brew \ +# --plugin-dir=dotbot-plugins/dotbot-gh-extension \ +# --plugin-dir=dotbot-plugins/dotbot-golang \ +# --plugin-dir=dotbot-plugins/dotbot-if \ +# --plugin-dir=dotbot-plugins/dotbot-ifplatform \ +# -p dotbot-plugins/dotbot-if/if.py \ + diff --git a/install.conf.yaml b/install.conf.yaml index 6aebb03..86272ba 100644 --- a/install.conf.yaml +++ b/install.conf.yaml @@ -23,23 +23,22 @@ mode: 700 ~/Code: - - link: ~/.config/: glob: true - path: config/** + path: config/* ~/.local/bin/: glob: true - path: local/bin/** + path: local/bin/* ~/.ssh/: force: true glob: true mode: 600 - path: ssh/** + path: ssh/* ~/: force: true glob: true - path: base/** + path: base/* prefix: "." - shell: