From f150277820366ad4f29636cc1e88955e2ac50ed9 Mon Sep 17 00:00:00 2001 From: John D Pell Date: Tue, 1 Feb 2022 15:24:19 -0800 Subject: [PATCH] themes/base: use `type -P` instead of `which` Avoid external binary `which`. Use built-in `type -P` instead. Uppercase `-P` forces a path search to avoid hashed matches and functions/aliases and whatnot. --- test/themes/base.theme.bats | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) mode change 100644 => 100755 test/themes/base.theme.bats diff --git a/test/themes/base.theme.bats b/test/themes/base.theme.bats old mode 100644 new mode 100755 index 63f25133e6..d848d3801f --- a/test/themes/base.theme.bats +++ b/test/themes/base.theme.bats @@ -2,7 +2,10 @@ load ../test_helper load ../test_helper_libs -load ../../themes/base.theme + +function local_setup { + load ../../themes/base.theme +} @test 'themes base: battery_percentage should not exist' { run type -a battery_percentage &> /dev/null