mirror of
https://github.com/smxi/inxi.git
synced 2025-09-04 03:29:10 +00:00
tweaks
This commit is contained in:
parent
46f05dc2fc
commit
947a8b8fc4
1 changed files with 4 additions and 3 deletions
7
inxi
7
inxi
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
########################################################################
|
########################################################################
|
||||||
#### Script Name: inxi
|
#### Script Name: inxi
|
||||||
#### version: 0.1.7
|
#### version: 0.1.8
|
||||||
#### Date: October 27 2008
|
#### Date: October 27 2008
|
||||||
########################################################################
|
########################################################################
|
||||||
#### inxi is a fork of infobash, the original bash sys info script by locsmif
|
#### 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_NAME="inxi"
|
||||||
SCRIPT_LOWER_CASE=$( tr '[A-Z]' '[a-z]' <<< $SCRIPT_NAME )
|
SCRIPT_LOWER_CASE=$( tr '[A-Z]' '[a-z]' <<< $SCRIPT_NAME )
|
||||||
SCRIPT_PATH=$( dirname $0 )
|
SCRIPT_PATH=$( dirname $0 )
|
||||||
SCRIPT_VERSION_NUMBER=$( grep -m 1 'version:' $SCRIPT_PATH/$SCRIPT_NAME | awk '{print $3}' )
|
SCRIPT_VERSION_NUMBER=$( grep -im 1 'version:' $SCRIPT_PATH/$SCRIPT_NAME | awk '{print $3}' )
|
||||||
MY_VERSION="$SCRIPT_NAME $SCRIPT_VERSION_NUMBER"
|
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.
|
LC_ALL="C" # Make sure every program speaks English.
|
||||||
export LC_ALL
|
export LC_ALL
|
||||||
OIFS="$IFS" # Backup the current Internal Field Seperator
|
OIFS="$IFS" # Backup the current Internal Field Seperator
|
||||||
|
|
Loading…
Add table
Reference in a new issue