From a28b4d66e88d9ee54ff2fb3eca3126f4ad41df80 Mon Sep 17 00:00:00 2001 From: James Cloos Date: Tue, 23 Dec 2008 21:17:29 -0500 Subject: Be consistant using “(head|tail) -n 1” rather than “(head|tail) -1” MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mdm/src/create-xorg-conf | 2 +- mdm/src/mdm-start-seat | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mdm/src/create-xorg-conf b/mdm/src/create-xorg-conf index ebdb84e..5f74c55 100755 --- a/mdm/src/create-xorg-conf +++ b/mdm/src/create-xorg-conf @@ -134,7 +134,7 @@ fi if [ -f "$XRANDR_INFO_FILE" ]; then WIDTH_MULTIPLIER=`grep -A1 ":0.$((i-1))" $XRANDR_INFO_FILE | - tail -1 | cut -d'=' -f2` + tail -n 1 | cut -d'=' -f2` # If $WIDTH_MULTIPLIER=0, set it as 1 (for configuring at least one screen) WIDTH_MULTIPLIER=${WIDTH_MULTIPLIER/0/1} fi diff --git a/mdm/src/mdm-start-seat b/mdm/src/mdm-start-seat index e7a9f1b..a1968d2 100755 --- a/mdm/src/mdm-start-seat +++ b/mdm/src/mdm-start-seat @@ -247,7 +247,7 @@ KEYBOARD= MOUSE= SEAT_WINDOW_ID= SCREEN_X_ORIGIN=($(grep -A4 $DISPLAY $XRANDR_INFO_FILE | - tail -1 | cut -d'=' -f2)) + tail -n 1 | cut -d'=' -f2)) # XXX: In case $SCREEN_X_ORIGIN has only one value, and SEAT_DISPLAY is odd, # the open_seat_parent_window given parameter would be empty -- cgit v1.2.3