This commit is contained in:
inxi-svn 2012-06-25 23:55:02 +00:00
parent bd55bd0c11
commit 3367734d20

3
inxi
View file

@ -1253,6 +1253,7 @@ script_self_updater()
{
eval $LOGFS
local wget_error=0 file_contents='' wget_man_error=0
local man_file_path="$MAN_FILE_LOCATION/inxi.8.gz"
print_screen_output "Starting $SCRIPT_NAME self updater."
print_screen_output "Currently running $SCRIPT_NAME version number: $SCRIPT_VERSION_NUMBER"
@ -1282,7 +1283,7 @@ script_self_updater()
if [[ $wget_man_error -eq 0 ]];then
print_screen_output "Man file download URL verified: $MAN_FILE_DOWNLOAD"
print_screen_output "Downloading Man page file now."
wget -O $MAN_FILE_LOCATION/inxi.8.gz $MAN_FILE_DOWNLOAD || wget_man_error=$?
wget -O $man_file_path $MAN_FILE_DOWNLOAD || wget_man_error=$?
if [[ $wget_man_error -gt 0 ]];then
print_screen_output "Oh no! Something went wrong downloading the Man gz file at: $MAN_FILE_DOWNLOAD"
print_screen_output "Check the error messages for what happened. Error: $wget_man_error"