From 1676f029f129e577d5fb4369e58586b3cba686e3 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Tue, 11 Sep 2012 17:55:47 +0000 Subject: [PATCH] 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. --- inxi | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/inxi b/inxi index a4ee0a5..7759c44 100755 --- a/inxi +++ b/inxi @@ -1,8 +1,8 @@ #!/bin/bash ######################################################################## #### Script Name: inxi -#### version: 1.8.14 -#### Date: July 30 2012 +#### version: 1.8.15 +#### Date: September 11 2012 #### Patch Number: 00 ######################################################################## #### SPECIAL THANKS @@ -416,8 +416,8 @@ ALTERNATE_FTP='' # for data uploads LOG_FILE="$SCRIPT_DATA_DIR/inxi.log" LOG_FILE_1="$SCRIPT_DATA_DIR/inxi.1.log" LOG_FILE_2="$SCRIPT_DATA_DIR/inxi.2.log" -MAN_FILE_DOWNLOAD='http://inxi.googlecode.com/svn/trunk/inxi.8.gz' -MAN_FILE_LOCATION='/usr/share/man/man8' +MAN_FILE_DOWNLOAD='http://inxi.googlecode.com/svn/trunk/inxi.1.gz' +MAN_FILE_LOCATION='/usr/share/man/man1' SCRIPT_NAME="inxi" SCRIPT_PATCH_NUMBER='' SCRIPT_PATH="" #filled-in in Main @@ -1285,6 +1285,10 @@ script_self_updater() else if [[ $B_ROOT == 'true' ]];then 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=$? if [[ $wget_man_error -eq 0 ]];then print_screen_output "Man file download URL verified: $MAN_FILE_DOWNLOAD"