From ab91a041428d8c9535a17958661c8999930d8fcf Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Sun, 3 Mar 2019 17:46:46 -0800 Subject: [PATCH] More recent shellcheck doesn't like "which" for finding a binary Signed-off-by: Jesse Vincent --- bin/kaleidoscope-builder | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/kaleidoscope-builder b/bin/kaleidoscope-builder index 4f5ed9e1..649c415d 100755 --- a/bin/kaleidoscope-builder +++ b/bin/kaleidoscope-builder @@ -57,11 +57,11 @@ build_filenames () { enable_ccache () { - if [ "$(which ccache)" ]; then + if [ "$(command -v ccache)" ]; then if ! [ -d "$CCACHE_WRAPPER_PATH" ]; then mkdir -p "$CCACHE_WRAPPER_PATH" - ln -s "$(which ccache)" "${CCACHE_WRAPPER_PATH}/${COMPILER_PREFIX}gcc" - ln -s "$(which ccache)" "${CCACHE_WRAPPER_PATH}/${COMPILER_PREFIX}g++" + ln -s "$(command -v ccache)" "${CCACHE_WRAPPER_PATH}/${COMPILER_PREFIX}gcc" + ln -s "$(command -v ccache)" "${CCACHE_WRAPPER_PATH}/${COMPILER_PREFIX}g++" ln -s "${AVR_NM}" "${CCACHE_WRAPPER_PATH}/${COMPILER_PREFIX}nm" ln -s "${AVR_OBJCOPY}" "${CCACHE_WRAPPER_PATH}/${COMPILER_PREFIX}objcopy" ln -s "${AVR_AR}" "${CCACHE_WRAPPER_PATH}/${COMPILER_PREFIX}ar"