Skip to content

Commit

Permalink
themes/base: use type -P instead of which
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gaelicWizard committed Feb 20, 2022
1 parent ffc01cb commit f150277
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/themes/base.theme.bats
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f150277

Please sign in to comment.