From d5e9c7deb10df1bf2724383fa21c8f89c9e63504 Mon Sep 17 00:00:00 2001 From: Koichi Murase Date: Tue, 23 Aug 2022 17:47:35 +0900 Subject: [PATCH] tools/install: Refactor "{hash => type -P}" --- tools/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/install.sh b/tools/install.sh index 00b4e73..0bb6283 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -176,7 +176,7 @@ _omb_install_system_bashrc() { _omb_install_main() { # Use colors, but only if connected to a terminal, and that terminal # supports them. - if hash tput >/dev/null 2>&1; then + if type -P tput &>/dev/null; then local ncolors=$(tput colors 2>/dev/null || tput Co 2>/dev/null || echo -1) fi