mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
bug fix
This commit is contained in:
parent
bd55bd0c11
commit
3367734d20
3
inxi
3
inxi
|
@ -1253,6 +1253,7 @@ script_self_updater()
|
||||||
{
|
{
|
||||||
eval $LOGFS
|
eval $LOGFS
|
||||||
local wget_error=0 file_contents='' wget_man_error=0
|
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 "Starting $SCRIPT_NAME self updater."
|
||||||
print_screen_output "Currently running $SCRIPT_NAME version number: $SCRIPT_VERSION_NUMBER"
|
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
|
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"
|
||||||
print_screen_output "Downloading Man page file now."
|
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
|
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 "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"
|
print_screen_output "Check the error messages for what happened. Error: $wget_man_error"
|
||||||
|
|
Loading…
Reference in a new issue