From f2a9d64eab2317b7ac00ddac52c88ebf5b523820 Mon Sep 17 00:00:00 2001 From: David Kebler Date: Mon, 20 Mar 2023 10:37:45 -0700 Subject: [PATCH] use command -v instead of which --- modules/utility/dir.lib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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