mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 09:08:38 +00:00
Check OS earlier in the script
This commit is contained in:
2
neofetch
2
neofetch
@@ -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
|
||||||
|
Reference in New Issue
Block a user