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