Added function to check if old flags is still present on configs
This commit is contained in:
parent
fe6588d8b6
commit
710fd49887
10
neofetch
10
neofetch
|
@ -2703,6 +2703,15 @@ err() {
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
|
# Check for old flags {{{
|
||||||
|
|
||||||
|
checkoldflags() {
|
||||||
|
[ -n "$osx_buildversion" ] && err "\$osx_buildversion is deprecated, use \$distro_shorthand instead."
|
||||||
|
[ -n "$osx_codename" ] && err "\$osx_codename is deprecated, use \$distro_shorthand instead."
|
||||||
|
}
|
||||||
|
|
||||||
|
# }}}
|
||||||
|
|
||||||
# Get script directory {{{
|
# Get script directory {{{
|
||||||
|
|
||||||
getscriptdir() {
|
getscriptdir() {
|
||||||
|
@ -3208,6 +3217,7 @@ getargs() {
|
||||||
main() {
|
main() {
|
||||||
getos
|
getos
|
||||||
getdefaultconfig 2>/dev/null
|
getdefaultconfig 2>/dev/null
|
||||||
|
checkoldflags
|
||||||
getargs "$@"
|
getargs "$@"
|
||||||
getdistro
|
getdistro
|
||||||
|
|
||||||
|
|
Reference in New Issue