use command -v instead of which

master
David Kebler 2023-03-20 10:37:45 -07:00
parent ba63cf586c
commit f2a9d64eab
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ isDir() {
function dir_copy () { function dir_copy () {
[[ ! $(which rsync) ]] && { echo rsync must be installed to use this function; return 5; } [[ ! $(command -v rsync) ]] && { echo rsync must be installed to use this function; return 5; }
module_load confirm module_load confirm
local usesudo;local cmd;local src;local noconfirm;local merge local usesudo;local cmd;local src;local noconfirm;local merge