Always show header
This commit is contained in:
parent
cc1a318e3d
commit
cf1d11eb78
1 changed files with 14 additions and 11 deletions
|
|
@ -42,6 +42,19 @@ def get_user_name():
|
||||||
|
|
||||||
# Main section
|
# Main section
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
# Set log
|
||||||
|
try:
|
||||||
|
global_vars['LogDir'] = '{}/Logs'.format(
|
||||||
|
get_user_home(get_user_name()))
|
||||||
|
set_log_file('Build UFD ({Date-Time}).log'.format(**global_vars))
|
||||||
|
except:
|
||||||
|
major_exception()
|
||||||
|
|
||||||
|
# Header
|
||||||
|
print_success(KIT_NAME_FULL)
|
||||||
|
print_standard('UFD Build Tool')
|
||||||
|
print_standard(' ')
|
||||||
|
|
||||||
# Check if running as root
|
# Check if running as root
|
||||||
if os.geteuid() != 0:
|
if os.geteuid() != 0:
|
||||||
print_error('ERROR: This script is meant to be run as root.')
|
print_error('ERROR: This script is meant to be run as root.')
|
||||||
|
|
@ -58,11 +71,6 @@ if __name__ == '__main__':
|
||||||
major_exception()
|
major_exception()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# Set log
|
|
||||||
global_vars['LogDir'] = '{}/Logs'.format(
|
|
||||||
get_user_home(get_user_name()))
|
|
||||||
set_log_file('Build UFD ({Date-Time}).log'.format(**global_vars))
|
|
||||||
|
|
||||||
# Verify selections
|
# Verify selections
|
||||||
sources = OrderedDict()
|
sources = OrderedDict()
|
||||||
## UFD
|
## UFD
|
||||||
|
|
@ -90,11 +98,6 @@ if __name__ == '__main__':
|
||||||
sources[label] = s_path_obj
|
sources[label] = s_path_obj
|
||||||
|
|
||||||
# Show selections
|
# Show selections
|
||||||
## Header
|
|
||||||
clear_screen()
|
|
||||||
print_success(KIT_NAME_FULL)
|
|
||||||
print_standard('UFD Build Tool')
|
|
||||||
print_standard(' ')
|
|
||||||
## Sources
|
## Sources
|
||||||
print_info('Sources')
|
print_info('Sources')
|
||||||
for label in UFD_SOURCES.keys():
|
for label in UFD_SOURCES.keys():
|
||||||
|
|
@ -145,7 +148,7 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
print_standard(' ')
|
print_standard(' ')
|
||||||
print_success("It's go-time!")
|
print_success("It's go-time!")
|
||||||
exit_script(1)
|
exit_script()
|
||||||
|
|
||||||
# Double-check if formating device
|
# Double-check if formating device
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue