From 4e0c702480ecf5960550b1f4401f7601ca5da70d Mon Sep 17 00:00:00 2001 From: Nikolas Grottendieck Date: Mon, 2 Sep 2024 20:19:55 +0200 Subject: [PATCH] make bootstrapping (and skipping tools) extensible --- bootstrap.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bootstrap.sh b/bootstrap.sh index 8746a002c89..a0fbbd47086 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -22,9 +22,12 @@ function doIt() { mkdir -v -p "${HOME}/Library/Application Support/Code/User" echo "Linking files" + # skipping some tools because they are handled differently + local skip_tools=("vscode") for tmp in "stow"/*; do toolname=$(basename "${tmp}") - [[ "${toolname}" != "vscode" ]] && stow --dotfiles --dir "stow" "${toolname}" --target "${HOME}" + # shellcheck disable=SC2076 + [[ ! "${skip_tools[*]}" =~ "${toolname}" ]] && stow --dotfiles --dir "stow" "${toolname}" --target "${HOME}" done stow --dotfiles --dir "stow" "vscode" --target "${HOME}/Library/Application Support/Code/User"