1
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:
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
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

View File

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

View File

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