diff --git a/inxi b/inxi index e2f6d89..dcf5269 100755 --- a/inxi +++ b/inxi @@ -1,7 +1,7 @@ #!/bin/bash ######################################################################## #### Script Name: inxi -#### version: 0.1.8 +#### version: 0.1.10 #### Date: October 27 2008 ######################################################################## #### inxi is a fork of infobash, the original bash sys info script by locsmif @@ -113,6 +113,10 @@ if [[ -s $HOME/.$SCRIPT_LOWER_CASE ]] then source $HOME/.$SCRIPT_LOWER_CASE fi + +ALLUP=1 +HN=$(hostname) + # WARNING: In the main part below (search for 'KONVI') # there's a check for Konversation-specific config files. # Any one of these can override the above if infobash is run @@ -319,7 +323,8 @@ get_start_app() KONVI=1 IRCV="$( $IRC -v | gawk '/Konversation:/ { for (i=2;i<=NF;i++) { if (i == NF) { print $i } else { printf $i" " } } exit }' )" T=($IRCV) - if [[ ${T[0]} == *+* ]]; then + if [[ ${T[0]} == *+* ]] + then # < Sho_> locsmif: The version numbers of SVN versions look like this: # "+ # 1 ... ELSE) print_screen_output "$LNSHORT" fi # (IF VBL > 1) +## end main_temp_engine +} + +######################################################################## +#### SCRIPT EXECUTION +######################################################################## + +# Check for dependencies before running any commands in this script! So yes, here!! +check_script_depends + +set_calculated_variables + +get_start_app + +# "$@" passes every parameter separately quoted, "$*" passes all parameters as one quoted parameter. +get_parameters "$@" + +# If no colorscheme was set in the parameter handling routine, then set the default scheme +if ! ((CSCHEME)) +then + set_color_scheme "$DEFAULT_SCHEME" +fi + +set_konvi + +script_debugger "ALLUP=1 : inxi up and running.." + +# we'll pull these features out one by one and make them into real functions +main_temp_engine + +## last steps if ((IBSHELL && SCHEME)) then echo -n "" fi + + exit 0 # weechat's executor plugin forced me to do this, and rightfully so, because else the exit code from the last command is taken..