diff --git a/modules/utility/dir.lib b/modules/utility/dir.lib index c4b2840..c1c5e4e 100644 --- a/modules/utility/dir.lib +++ b/modules/utility/dir.lib @@ -14,7 +14,7 @@ isDir() { 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 local usesudo;local cmd;local src;local noconfirm;local merge