X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=lttctl%2Fltt-armall.sh;h=03143235431dfc7bf3cbaeeae6c5210190533111;hb=323ef0a303f5cfebe4de91df7fbfc9fdc0bd3887;hp=307f0b13f6084d1112105beea794c51bab874ed7;hpb=d7a3410b5ce5a9cf33c488f8602e9976bef90eeb;p=ltt-control.git diff --git a/lttctl/ltt-armall.sh b/lttctl/ltt-armall.sh index 307f0b1..0314323 100755 --- a/lttctl/ltt-armall.sh +++ b/lttctl/ltt-armall.sh @@ -14,7 +14,7 @@ # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -DEBUGFSROOT=$(grep ^debugfs /proc/mounts | head -1 | awk '{print $2}') +DEBUGFSROOT=$(grep ^debugfs /proc/mounts | head -n 1 | awk '{print $2}') MARKERSROOT=${DEBUGFSROOT}/ltt/markers usage () { @@ -62,7 +62,7 @@ if [ ! ${NETWORK} ]; then TESTS="${TESTS} -path '*/net/*_extended' -prune -o" fi -(eval "find '${MARKERSROOT}' ${TESTS} -name metadata -prune -o -name enable -print0") | while read -r -d $'\0' marker; do +(eval "find '${MARKERSROOT}' ${TESTS} -name metadata -prune -o -name enable -print") | while read -r marker; do if [ ! ${QUIET} ]; then echo "Connecting ${marker%/enable}" fi