Skip to content

Commit

Permalink
Fix Shellcheck not printing errors in liquidprompt
Browse files Browse the repository at this point in the history
If the liquidprompt file itself had errors, Shellcheck would not print
them. I am not entirely sure why, as it will print errors and warnings
in the theme files just fine.
  • Loading branch information
Rycieos committed Mar 14, 2024
1 parent 4112ce6 commit ff44057
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions liquidprompt
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ if test -n "${BASH_VERSION-}"; then

_LP_FIRST_INDEX=0
_LP_PERCENT='%' # must be escaped on zsh
# shellcheck disable=SC1003
_LP_BACKSLASH='\\' # must be escaped on bash

# Escape the given strings
Expand Down Expand Up @@ -96,6 +97,7 @@ elif test -n "${ZSH_VERSION-}" ; then
_LP_FIRST_INDEX=1
fi
_LP_PERCENT='%%'
# shellcheck disable=SC1003
_LP_BACKSLASH='\'

__lp_escape() {
Expand Down
1 change: 1 addition & 0 deletions shellcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ exec shellcheck \
--shell=bash \
--exclude=SC2155 \
--external-sources --check-sourced \
liquidprompt \
tools/* \
"$0" # Include this script to get the below imports

Expand Down

0 comments on commit ff44057

Please sign in to comment.