Commit 6e649f5a by Eric Coissac

Add debug log to iresourceexists

parent 3e114c25
Pipeline #23 skipped
......@@ -117,10 +117,13 @@ function isetmaxtrial() {
function iresourceexists() {
local rep=1
ils $1 2> /dev/null >/dev/null
ils "$1" 2> /dev/null >/dev/null
if (( $? == 0 )) ; then
logdebug "iRods resource : $1 exists"
rep=0
else
logdebug "iRods resource : $1 absents"
fi
return $rep
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment