Update dotfiles/.local/bin/provision
This commit is contained in:
parent
84b00ff0b9
commit
a9d3c63eef
1 changed files with 12 additions and 4 deletions
|
@ -14,9 +14,17 @@ brew install go-task/tap/go-task
|
||||||
brew install jq
|
brew install jq
|
||||||
brew install yq
|
brew install yq
|
||||||
|
|
||||||
# Run dotfiles install scripts
|
# Ensure dotfiles are present
|
||||||
chmod +x "$HOME/.local/bin/install-dotfiles"
|
if [ ! -f "$HOME/.local/bin/install-dotfiles" ]; then
|
||||||
install-dotfiles
|
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`
|
# 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
|
||||||
|
|
Loading…
Reference in a new issue