From 947a8b8fc45f37bb3bbd3c1dcb6477eacc202676 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Tue, 28 Oct 2008 03:09:58 +0000 Subject: [PATCH] tweaks --- inxi | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/inxi b/inxi index 65e3ec6..05a0572 100755 --- a/inxi +++ b/inxi @@ -1,7 +1,7 @@ #!/bin/bash ######################################################################## #### Script Name: inxi -#### version: 0.1.7 +#### version: 0.1.8 #### Date: October 27 2008 ######################################################################## #### inxi is a fork of infobash, the original bash sys info script by locsmif @@ -57,8 +57,9 @@ shopt -u nullglob SCRIPT_NAME="inxi" SCRIPT_LOWER_CASE=$( tr '[A-Z]' '[a-z]' <<< $SCRIPT_NAME ) SCRIPT_PATH=$( dirname $0 ) -SCRIPT_VERSION_NUMBER=$( grep -m 1 'version:' $SCRIPT_PATH/$SCRIPT_NAME | awk '{print $3}' ) -MY_VERSION="$SCRIPT_NAME $SCRIPT_VERSION_NUMBER" +SCRIPT_VERSION_NUMBER=$( grep -im 1 'version:' $SCRIPT_PATH/$SCRIPT_NAME | awk '{print $3}' ) +SCRIPT_DATE=$( grep -im 1 'date:' $SCRIPT_PATH/$SCRIPT_NAME | awk '{print $3 " " $4 ", " $5}' ) +MY_VERSION="$SCRIPT_NAME v:$SCRIPT_VERSION_NUMBER" LC_ALL="C" # Make sure every program speaks English. export LC_ALL OIFS="$IFS" # Backup the current Internal Field Seperator