Check OS earlier in the script

This commit is contained in:
Dylan Araps 2016-08-19 10:05:45 +10:00
parent fa8a1e82ec
commit e25a48e1f8

View file

@ -3009,9 +3009,9 @@ getargs() {
# Call Functions and Finish Up {{{
main() {
getos
getdefaultconfig 2>/dev/null
getargs "$@"
getos
# Restore cursor and clear screen on ctrl+c
trap 'printf "\033[?25h"; clear; exit' 2