From da5c4d23313e75ade3d971dab90e9d3f0a94dd1d Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 10 Mar 2013 23:44:51 +0100 Subject: [PATCH] setup.sh: Don't use `which`. --- setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.sh b/setup.sh index 6e2a68e..3a5e7f2 100755 --- a/setup.sh +++ b/setup.sh @@ -81,7 +81,7 @@ else fi fi # Absolute path to `ls`. -ls_path=`which ls` +ls_path=`installed_path ls` # GNU ls with colors. if test "x$ls_color" = xgnu; then ls_env= @@ -130,7 +130,7 @@ if terminal_available screen-256color; then # rxvt-unicode binaries (e.g. Debian's rxvt-unicode-256color), the # terminal_info check for manual installations which modify # rxvt-unicode's terminfo entry. - urxvt_path=`which urxvt` + urxvt_path=`installed_path urxvt` urxvt_grep=`strings "$urxvt_path" | grep '^TERM=rxvt-'` if test x"$urxvt_grep" = 'xTERM=rxvt-unicode-256color' \ || terminal_info rxvt-unicode \ -- 2.45.2