(change version)

Added two new testing options, svn branch one and branch two download run from urls.

Both are triggered by -!, -! 3 for testing branch/one and -! 4 for testing branch/two
This commit is contained in:
inxi-svn 2008-11-13 01:57:45 +00:00
parent cc5fb242c4
commit 6960738965

8
inxi
View file

@ -1,7 +1,7 @@
#!/bin/bash
########################################################################
#### Script Name: inxi
#### version: 0.5.18
#### version: 0.5.19
#### Date: November 11 2008
########################################################################
#### inxi is a fork of infobash, the original bash sys info script by locsmif
@ -166,6 +166,8 @@ SCRIPT_NAME="inxi"
SCRIPT_PATH=$( dirname $0 )
SCRIPT_VERSION_NUMBER=$( grep -im 1 'version:' $SCRIPT_PATH/$SCRIPT_NAME | gawk '{print $3}' )
SCRIPT_DOWNLOAD='http://inxi.googlecode.com/svn/trunk/'
SCRIPT_DOWNLOAD_BRANCH_1='http://inxi.googlecode.com/svn/branches/one/'
SCRIPT_DOWNLOAD_BRANCH_2='http://inxi.googlecode.com/svn/branches/two/'
SCRIPT_DOWNLOAD_DEV='http://techpatterns.com/downloads/distro/'
KONVI_CFG="konversation/scripts/$SCRIPT_NAME.conf" # relative path to $(kde-config --path data)
@ -590,6 +592,10 @@ get_parameters()
;;
2) script_self_updater "$SCRIPT_DOWNLOAD_DEV" 'dev server'
;;
3) script_self_updater "$SCRIPT_DOWNLOAD_BRANCH_1" 'svn: branch one server'
;;
4) script_self_updater "$SCRIPT_DOWNLOAD_BRANCH_2" 'svn: branch two server'
;;
http*)
# first test provided url to avoid overwriting file with null
wget -q --spider "$OPTARG$SCRIPT_NAME"