projects
/
ltt-control.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove dependency of ltt-arm/disarmall on bash idioms
[ltt-control.git]
/
lttctl
/
ltt-disarmall.sh
diff --git
a/lttctl/ltt-disarmall.sh
b/lttctl/ltt-disarmall.sh
index aa1a0d7736160e5676435d94b63df662b37421da..64e65a426a7280fb74e2f0bc3433a5d66294a4c9 100755
(executable)
--- a/
lttctl/ltt-disarmall.sh
+++ b/
lttctl/ltt-disarmall.sh
@@
-48,7
+48,7
@@
while getopts "qh" options; do
done
shift $((${OPTIND} - 1))
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
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}
echo "Disconnecting ${marker%/enable}"
fi
echo 0 > ${marker}
-done
< <(eval "find '${MARKERSROOT}' -name metadata -prune -o -name enable -print0")
+done
This page took
0.022426 seconds
and
4
git commands to generate.