Skip to content

Commit

Permalink
Add shellcheck shell directives where necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
jsf9k committed Oct 31, 2024
1 parent da5f9d1 commit 2375b3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bash/.bash_profile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# shellcheck shell=bash

# Workaround to get macOS to use .bashrc
if [[ "$OSTYPE" == "darwin"* ]] && [ -r "$HOME/.bashrc" ]; then
# shellcheck source=/dev/null
Expand Down
2 changes: 2 additions & 0 deletions bash/.bashrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# shellcheck shell=bash

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

Expand Down

0 comments on commit 2375b3a

Please sign in to comment.