X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=lttctl%2Fltt-disarmall.sh;fp=lttctl%2Fltt-disarmall.sh;h=64e65a426a7280fb74e2f0bc3433a5d66294a4c9;hb=d7a3410b5ce5a9cf33c488f8602e9976bef90eeb;hp=aa1a0d7736160e5676435d94b63df662b37421da;hpb=fde9c319224e496655850ff59c38b8a8659146ee;p=ltt-control.git diff --git a/lttctl/ltt-disarmall.sh b/lttctl/ltt-disarmall.sh index aa1a0d7..64e65a4 100755 --- a/lttctl/ltt-disarmall.sh +++ b/lttctl/ltt-disarmall.sh @@ -48,7 +48,7 @@ while getopts "qh" options; do done shift $((${OPTIND} - 1)) -while read -r -d $'\0' marker; do +(eval "find '${MARKERSROOT}' -name metadata -prune -o -name enable -print0") | while read -r -d $'\0' marker; do grep "^1$" "${marker}" -q if [ $? -ne 0 ]; then continue @@ -57,4 +57,4 @@ while read -r -d $'\0' marker; do echo "Disconnecting ${marker%/enable}" fi echo 0 > ${marker} -done < <(eval "find '${MARKERSROOT}' -name metadata -prune -o -name enable -print0") +done