refractor(bootstrap): Format with shfmt

This commit is contained in:
js0ny 2025-02-24 00:42:55 +00:00
parent f015467b1b
commit 0ce74497cd
21 changed files with 271 additions and 377 deletions

View file

@ -1,10 +1,12 @@
#!/usr/bin/env bash
# shellcheck disable=SC1090 shell=sh
# Date: 2025-02-11
# Author: js0ny
# IMPORTANT: The default `bash` in macOS is outdated, run with zsh or install the latest `bash` via Homebrew
# If you are macOS, run `xcode select --install` first
set -e # Exit immediately if a command exits with a non-zero status
set -o errexit
set -o xtrace
DOTFILES="${DOTFILES:-$HOME/.dotfiles}"
@ -14,13 +16,13 @@ export DOTFILES
case "$(uname)" in
Linux)
curl https://raw.githubusercontent.com/js0ny/dotfiles/refs/heads/master/bootstrap/linux/main.bash -o ~/.local/.tmp/main.bash
source ~/.local/.tmp/main.bash
rm -rf ~/.local/.tmp/main.bash
;;
curl https://raw.githubusercontent.com/js0ny/dotfiles/refs/heads/master/bootstrap/linux/main.bash -o ~/.local/.tmp/main.bash
source ~/.local/.tmp/main.bash
rm -rf ~/.local/.tmp/main.bash
;;
Darwin)
curl https://raw.githubusercontent.com/js0ny/dotfiles/refs/heads/master/bootstrap/macOS/main.zsh -o ~/.local/.tmp/main.zsh
zsh ~/.local/.tmp/main.zsh
rm -rf ~/.local/.tmp/main.zsh
;;
curl https://raw.githubusercontent.com/js0ny/dotfiles/refs/heads/master/bootstrap/macOS/main.zsh -o ~/.local/.tmp/main.zsh
zsh ~/.local/.tmp/main.zsh
rm -rf ~/.local/.tmp/main.zsh
;;
esac