mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
moved some running in shell assignments to main()
This commit is contained in:
parent
552fb8f1b9
commit
4e4244e620
13
inxi
13
inxi
|
@ -624,12 +624,18 @@ main()
|
||||||
set_color_scheme $color_scheme
|
set_color_scheme $color_scheme
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
if [[ $B_RUNNING_IN_SHELL == 'true' ]];then
|
||||||
|
LINE_MAX=$LINE_MAX_CONSOLE
|
||||||
|
SEP3=$SEP3_CONSOLE
|
||||||
|
else
|
||||||
# too hard to read if no colors, so force that for users on irc
|
# too hard to read if no colors, so force that for users on irc
|
||||||
if [[ $B_RUNNING_IN_SHELL == 'true' || $SCHEME == 0 ]];then
|
if [[ $SCHEME == 0 ]];then
|
||||||
SEP3=$SEP3_CONSOLE
|
SEP3=$SEP3_CONSOLE
|
||||||
else
|
else
|
||||||
SEP3=$SEP3_IRC
|
SEP3=$SEP3_IRC
|
||||||
fi
|
fi
|
||||||
|
LINE_MAX=$LINE_MAX_IRC
|
||||||
|
fi
|
||||||
|
|
||||||
# all the pre-start stuff is in place now
|
# all the pre-start stuff is in place now
|
||||||
B_SCRIPT_UP='true'
|
B_SCRIPT_UP='true'
|
||||||
|
@ -2545,11 +2551,6 @@ get_start_client()
|
||||||
unset IRC_CLIENT_VERSION
|
unset IRC_CLIENT_VERSION
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [[ $B_RUNNING_IN_SHELL == 'true' ]];then
|
|
||||||
LINE_MAX=$LINE_MAX_CONSOLE
|
|
||||||
else
|
|
||||||
LINE_MAX=$LINE_MAX_IRC
|
|
||||||
fi
|
|
||||||
|
|
||||||
log_function_data "IRC_CLIENT: $IRC_CLIENT :: IRC_CLIENT_VERSION: $IRC_CLIENT_VERSION :: PPID: $PPID"
|
log_function_data "IRC_CLIENT: $IRC_CLIENT :: IRC_CLIENT_VERSION: $IRC_CLIENT_VERSION :: PPID: $PPID"
|
||||||
eval $LOGFE
|
eval $LOGFE
|
||||||
|
|
Loading…
Reference in a new issue