From dc00445017b23a30506338b3207dd0fea6b2c44f Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Tue, 4 Nov 2008 02:16:50 +0000 Subject: [PATCH] Added both -V and -U update output that tells user where script is located in system --- inxi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/inxi b/inxi index 86aaf11..efba7d1 100755 --- a/inxi +++ b/inxi @@ -1,7 +1,7 @@ #!/bin/bash ######################################################################## #### Script Name: inxi -#### version: 0.3.10 +#### version: 0.3.11 #### Date: November 3 2008 ######################################################################## #### inxi is a fork of infobash, the original bash sys info script by locsmif @@ -513,6 +513,7 @@ print_version_info() print_screen_output "$SCRIPT_NAME - the universal, portable, system info script for irc." print_screen_output "Version: $SCRIPT_VERSION_NUMBER" print_screen_output "Script Last Modified: $last_modified" + print_screen_output "Script Location: $SCRIPT_PATH" print_screen_output "" print_screen_output "Tested with Irssi, Xchat, Konversation, BitchX, KSirc, ircII," print_screen_output "Gaim/Pidgin, Weechat, KVIrc and Kopete." @@ -530,7 +531,7 @@ print_version_info() script_self_updater() { - print_screen_output "Updating $SCRIPT_NAME. Current version number: $SCRIPT_VERSION_NUMBER" + print_screen_output "Updating $SCRIPT_NAME in $SCRIPT_PATH. Current version number: $SCRIPT_VERSION_NUMBER" wget -O $SCRIPT_PATH/$SCRIPT_NAME http://techpatterns.com/downloads/distro/$SCRIPT_NAME || error_handler 8 "$?" if [ "$?" -eq 0 ];then SCRIPT_VERSION_NUMBER=$( grep -im 1 'version:' $SCRIPT_PATH/$SCRIPT_NAME | awk '{print $3}' )