Move functions around

This commit is contained in:
Dylan Araps 2016-08-19 10:09:35 +10:00
parent e254274c24
commit f4e96993d5
1 changed files with 5 additions and 7 deletions

View File

@ -3012,6 +3012,11 @@ main() {
getos
getdefaultconfig 2>/dev/null
getargs "$@"
getdistro
# Get colors and bold
bold
colors
# Restore cursor and clear screen on ctrl+c
trap 'printf "\033[?25h"; clear; exit' 2
@ -3019,13 +3024,6 @@ main() {
# If the script exits for any reason, unhide the cursor.
trap 'printf "\033[?25h"' EXIT
# Distro detection
getdistro
# Get colors and bold
bold
colors
# Clear the scren
clear