1
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:
Jake Jarvis 2020-05-13 12:33:00 -04:00
parent 875fe20c06
commit 3c46bb9f05
Signed by: jake
GPG Key ID: 2B0C9CF251E69A39
3 changed files with 9 additions and 11 deletions

View File

@ -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

View File

@ -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

View File

@ -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