build_lexicon_filter: drop which dependency

This commit is contained in:
David Adam 2017-11-30 15:00:52 +08:00
parent 7d055a120e
commit e98ecf9cfa

View file

@ -18,7 +18,7 @@ rm -f lexicon.tmp lexicon_catalog.tmp lexicon_catalog.txt lexicon.txt
FUNCTIONS_DIR_FILES=${1}/*.fish
COMPLETIONS_DIR_FILES=${2}/*.fish
SED=${3:-$(which sed)}
SED=${3:-$(command -v sed)}
# Scan sources for commands/functions/binaries/colours. If GNU sed was portable, this could be much smarter.
$SED <command_list_toc.txt >>lexicon.tmp -n \