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