mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
(change version)
Fine tuned the branch download option error messages to better reflect the actual error.
This commit is contained in:
parent
ccd62be018
commit
c848609967
7
inxi
7
inxi
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
########################################################################
|
########################################################################
|
||||||
#### Script Name: inxi
|
#### Script Name: inxi
|
||||||
#### version: 0.5.20
|
#### version: 0.5.21
|
||||||
#### Date: November 11 2008
|
#### Date: November 11 2008
|
||||||
########################################################################
|
########################################################################
|
||||||
#### inxi is a fork of infobash, the original bash sys info script by locsmif
|
#### inxi is a fork of infobash, the original bash sys info script by locsmif
|
||||||
|
@ -265,6 +265,9 @@ error_handler()
|
||||||
11)
|
11)
|
||||||
error_message="unsupported testing option argument: -! $2"
|
error_message="unsupported testing option argument: -! $2"
|
||||||
;;
|
;;
|
||||||
|
12)
|
||||||
|
error_message="the svn branch download url: $2\nappears be empty currently. Make sure there is an actual svn branch version\nactive before you try this again. Check http://code.google.com/p/inxi\nto verify the branch status."
|
||||||
|
;;
|
||||||
*) error_message="error unknown: $@"
|
*) error_message="error unknown: $@"
|
||||||
set -- 99
|
set -- 99
|
||||||
;;
|
;;
|
||||||
|
@ -721,7 +724,7 @@ script_self_updater()
|
||||||
if [[ $2 == 'svn server' ]];then
|
if [[ $2 == 'svn server' ]];then
|
||||||
error_handler 8 "$?"
|
error_handler 8 "$?"
|
||||||
else
|
else
|
||||||
error_handler 10 "$1"
|
error_handler 12 "$1"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue