use command -v instead of which
parent
ba63cf586c
commit
f2a9d64eab
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue