mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
updated inxi updater to get inxi.1.gz instead of inxi.8.gz, and also to mv man8/inxi.8.gz to man1/inxi.1.gz if detected.
that should bring inxi back into sync with the methods of man.
This commit is contained in:
parent
f25ec3ba45
commit
1676f029f1
12
inxi
12
inxi
|
@ -1,8 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
########################################################################
|
########################################################################
|
||||||
#### Script Name: inxi
|
#### Script Name: inxi
|
||||||
#### version: 1.8.14
|
#### version: 1.8.15
|
||||||
#### Date: July 30 2012
|
#### Date: September 11 2012
|
||||||
#### Patch Number: 00
|
#### Patch Number: 00
|
||||||
########################################################################
|
########################################################################
|
||||||
#### SPECIAL THANKS
|
#### SPECIAL THANKS
|
||||||
|
@ -416,8 +416,8 @@ ALTERNATE_FTP='' # for data uploads
|
||||||
LOG_FILE="$SCRIPT_DATA_DIR/inxi.log"
|
LOG_FILE="$SCRIPT_DATA_DIR/inxi.log"
|
||||||
LOG_FILE_1="$SCRIPT_DATA_DIR/inxi.1.log"
|
LOG_FILE_1="$SCRIPT_DATA_DIR/inxi.1.log"
|
||||||
LOG_FILE_2="$SCRIPT_DATA_DIR/inxi.2.log"
|
LOG_FILE_2="$SCRIPT_DATA_DIR/inxi.2.log"
|
||||||
MAN_FILE_DOWNLOAD='http://inxi.googlecode.com/svn/trunk/inxi.8.gz'
|
MAN_FILE_DOWNLOAD='http://inxi.googlecode.com/svn/trunk/inxi.1.gz'
|
||||||
MAN_FILE_LOCATION='/usr/share/man/man8'
|
MAN_FILE_LOCATION='/usr/share/man/man1'
|
||||||
SCRIPT_NAME="inxi"
|
SCRIPT_NAME="inxi"
|
||||||
SCRIPT_PATCH_NUMBER=''
|
SCRIPT_PATCH_NUMBER=''
|
||||||
SCRIPT_PATH="" #filled-in in Main
|
SCRIPT_PATH="" #filled-in in Main
|
||||||
|
@ -1285,6 +1285,10 @@ script_self_updater()
|
||||||
else
|
else
|
||||||
if [[ $B_ROOT == 'true' ]];then
|
if [[ $B_ROOT == 'true' ]];then
|
||||||
print_screen_output "Checking Man page download URL..."
|
print_screen_output "Checking Man page download URL..."
|
||||||
|
if [[ -f /usr/share/man/man8/inxi.8.gz ]];then
|
||||||
|
print_screen_output "Updating man page location to man1."
|
||||||
|
mv -f /usr/share/man/man8/inxi.8.gz /usr/share/man/man1/inxi.1.gz
|
||||||
|
fi
|
||||||
wget -q --spider $MAN_FILE_DOWNLOAD || wget_man_error=$?
|
wget -q --spider $MAN_FILE_DOWNLOAD || wget_man_error=$?
|
||||||
if [[ $wget_man_error -eq 0 ]];then
|
if [[ $wget_man_error -eq 0 ]];then
|
||||||
print_screen_output "Man file download URL verified: $MAN_FILE_DOWNLOAD"
|
print_screen_output "Man file download URL verified: $MAN_FILE_DOWNLOAD"
|
||||||
|
|
Loading…
Reference in a new issue