summaryrefslogtreecommitdiffstats
path: root/diagnostics
diff options
context:
space:
mode:
authorEthan P <eth-p+git@hidden.email>2020-04-08 14:15:51 -0700
committerDavid Peter <sharkdp@users.noreply.github.com>2020-04-09 09:20:03 +0200
commitc33af3581aa641831662e476cfe751e67b626f39 (patch)
treef059076c536900e5aff1381b29011c3e62b44a8d /diagnostics
parent2f4ecf8fc5492bfbb6753983e32d7e45163c5096 (diff)
Fix missing shell '-i' option when checking for wrapper in info.sh
Diffstat (limited to 'diagnostics')
-rwxr-xr-xdiagnostics/info.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/diagnostics/info.sh b/diagnostics/info.sh
index 18098840..ff69f2cd 100755
--- a/diagnostics/info.sh
+++ b/diagnostics/info.sh
@@ -35,7 +35,6 @@ _tool_:description() {
_collects "Version information for 'less'."
}
-
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
_bat_:run() {
@@ -71,14 +70,14 @@ _bat_wrapper_:run() {
_bat_wrapper_function_:run() {
case "$("$SHELL" --version | head -n 1)" in
*fish*)
- if "$SHELL" --login -c 'type bat' 2>&1 | grep 'function' &>/dev/null; then
+ if "$SHELL" --login -i -c 'type bat' 2>&1 | grep 'function' &>/dev/null; then
_out_fence "$SHELL" --login -c 'functions bat'
return
fi ;;
*bash*|*zsh*)
- if "$SHELL" --login -c 'type bat' 2>&1 | grep 'function' &>/dev/null; then
- _out_fence "$SHELL" --login -i -c 'declare -f bat'
+ if "$SHELL" --login -i -c 'type bat' 2>&1 | grep 'function' &>/dev/null; then
+ _out_fence "$SHELL" --login -c 'declare -f bat'
return
fi ;;