Gitiles
Code Review
Sign In
gerrit.named-data.net
/
ndn-cxx
/
fe13f56bc7b38256e24e4cd07d20c9d9134f2330
/
.
/
.jenkins.d
/
util.sh
blob: a89bc27399519d35c2120a519769b7904835ed68 [
file
] [
log
] [
blame
]
has
()
{
local
saved_xtrace
[[
$
-
==
*
x
*
]]
&&
saved_xtrace
=-
x
||
saved_xtrace
=+
x
set
+
x
local
p
=
$1
shift
local
i ret
=
1
for
i
in
"$@"
;
do
if
[[
"${i}"
==
"${p}"
]];
then
ret
=
0
break
fi
done
set
$
{
saved_xtrace
}
return
$
{
ret
}
}