From 7ce719c077ee09d91889d3534164d8a96d152d25 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Fri, 4 Dec 2009 11:10:26 -0500 Subject: [PATCH] ltt-armall: head -1 is deprecated, replace by head -n 1 Signed-off-by: Mathieu Desnoyers --- configure.in | 2 +- lttctl/ltt-armall.sh | 2 +- lttctl/ltt-disarmall.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.in b/configure.in index e4805d0..81c21c3 100644 --- a/configure.in +++ b/configure.in @@ -23,7 +23,7 @@ AC_PREREQ(2.57) AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS) #AC_WITH_LTDL # not needed ? -AM_INIT_AUTOMAKE(ltt-control,0.77-18112009) +AM_INIT_AUTOMAKE(ltt-control,0.78-04122009) AM_CONFIG_HEADER(config.h) AM_PROG_LIBTOOL diff --git a/lttctl/ltt-armall.sh b/lttctl/ltt-armall.sh index 307f0b1..9b740d1 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 () { diff --git a/lttctl/ltt-disarmall.sh b/lttctl/ltt-disarmall.sh index 64e65a4..4f4fdca 100755 --- a/lttctl/ltt-disarmall.sh +++ b/lttctl/ltt-disarmall.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 () { -- 2.34.1