From: Mathieu Desnoyers Date: Fri, 4 Dec 2009 16:10:26 +0000 (-0500) Subject: ltt-armall: head -1 is deprecated, replace by head -n 1 X-Git-Tag: 0.80~5 X-Git-Url: http://git.lttng.org/?p=ltt-control.git;a=commitdiff_plain;h=7ce719c077ee09d91889d3534164d8a96d152d25 ltt-armall: head -1 is deprecated, replace by head -n 1 Signed-off-by: Mathieu Desnoyers --- 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 () {