From a9d3c63eef6ff7974976eff9dd5fabd40f45069d Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Sat, 19 Nov 2022 14:24:54 +0000 Subject: [PATCH] Update dotfiles/.local/bin/provision --- dotfiles/.local/bin/provision | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/dotfiles/.local/bin/provision b/dotfiles/.local/bin/provision index 2b74a17c..4e6d6354 100644 --- a/dotfiles/.local/bin/provision +++ b/dotfiles/.local/bin/provision @@ -14,9 +14,17 @@ brew install go-task/tap/go-task brew install jq brew install yq -# Run dotfiles install scripts -chmod +x "$HOME/.local/bin/install-dotfiles" -install-dotfiles +# Ensure dotfiles are present +if [ ! -f "$HOME/.local/bin/install-dotfiles" ]; then + bash <(curl -sSL https://gitlab.com/megabyte-labs/misc/dotfiles/-/raw/master/dotfiles/.local/bin/install-dotfiles) +else + chmod +x "$HOME/.local/bin/install-dotfiles" + install-dotfiles +fi # Use run alias to invoke the `$HOME/.local/Taskfile.yml` -run localhost:provision +if [ -z "$1" ]; then + run localhost:provision +else + run "localhost:provision:$1" +fi