mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
language change
This commit is contained in:
parent
88b0b389b8
commit
2bd19db6ea
4
inxi
4
inxi
|
@ -1234,7 +1234,7 @@ script_self_updater()
|
|||
local wget_error=0 file_contents=''
|
||||
print_screen_output "Starting $SCRIPT_NAME self updater."
|
||||
print_screen_output "Currently running $SCRIPT_NAME version number: $SCRIPT_VERSION_NUMBER"
|
||||
print_screen_output "Local version patch number: $SCRIPT_PATCH_NUMBER"
|
||||
print_screen_output "Current version patch number: $SCRIPT_PATCH_NUMBER"
|
||||
print_screen_output "Updating $SCRIPT_NAME in $SCRIPT_PATH using $2 as download source..."
|
||||
|
||||
file_contents="$( wget -q -O - $1$SCRIPT_NAME )" || wget_error=$?
|
||||
|
@ -1247,7 +1247,7 @@ script_self_updater()
|
|||
SCRIPT_VERSION_NUMBER=$( grep -im 1 'version:' $SCRIPT_PATH/$SCRIPT_NAME | gawk '{print $3}' )
|
||||
SCRIPT_PATCH_NUMBER=$( grep -im 1 'Patch Number:' $SCRIPT_PATH/$SCRIPT_NAME | gawk '{print $4}' )
|
||||
print_screen_output "Successfully updated to $2 version: $SCRIPT_VERSION_NUMBER"
|
||||
print_screen_output "Updated $2 version patch number: $SCRIPT_PATCH_NUMBER"
|
||||
print_screen_output "New $2 version patch number: $SCRIPT_PATCH_NUMBER"
|
||||
print_screen_output "To run the new version, just start $SCRIPT_NAME again."
|
||||
exit 0
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue