mirror of
https://github.com/jakejarvis/dotfiles.git
synced 2025-04-25 15:35:21 -04:00
what would shellcheck do
This commit is contained in:
parent
875fe20c06
commit
3c46bb9f05
8
.github/workflows/lint.yml
vendored
8
.github/workflows/lint.yml
vendored
@ -1,14 +1,10 @@
|
||||
name: Lint
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/checkout@v2
|
||||
- uses: azohra/shell-linter@master
|
||||
continue-on-error: true
|
||||
|
@ -5,9 +5,9 @@ set -e
|
||||
echo "👋 Deep breaths, everything will (probably) be fine!"
|
||||
|
||||
# Set up symbolic links for ZSH and Git pointing to this cloned repo
|
||||
ln -sf $HOME/.dotfiles/zsh/.zshrc $HOME/.zshrc
|
||||
ln -sf $HOME/.dotfiles/git/.gitconfig $HOME/.gitconfig
|
||||
ln -sf $HOME/.dotfiles/git/.gitignore_global $HOME/.gitignore_global
|
||||
ln -sf "$HOME"/.dotfiles/zsh/.zshrc "$HOME"/.zshrc
|
||||
ln -sf "$HOME"/.dotfiles/git/.gitconfig "$HOME"/.gitconfig
|
||||
ln -sf "$HOME"/.dotfiles/git/.gitignore_global "$HOME"/.gitignore_global
|
||||
|
||||
# Get Oh My ZSH up and running
|
||||
if [ ! -e ~/.oh-my-zsh ]; then
|
||||
@ -15,7 +15,8 @@ if [ ! -e ~/.oh-my-zsh ]; then
|
||||
fi
|
||||
|
||||
# Make ZSH the default shell environment (maybe unnecessary on Catalina?)
|
||||
chsh -s $(which zsh)
|
||||
# shellcheck disable=SC2230
|
||||
chsh -s "$(which zsh)"
|
||||
|
||||
if [ "$(uname)" == "Darwin" ]; then
|
||||
# shellcheck disable=SC1091
|
||||
|
@ -11,7 +11,8 @@ sudo softwareupdate --install --all
|
||||
|
||||
# This whole thing kinda hinges on having Homebrew...
|
||||
# Check for it and install from GitHub if it's not there
|
||||
if test ! $(which brew); then
|
||||
# shellcheck disable=SC2230
|
||||
if test ! "$(which brew)"; then
|
||||
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user