Commit 710fd498 authored by Muhammad Herdiansyah's avatar Muhammad Herdiansyah

Added function to check if old flags is still present on configs

parent fe6588d8
......@@ -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 {{{
getscriptdir() {
......@@ -3208,6 +3217,7 @@ getargs() {
main() {
getos
getdefaultconfig 2>/dev/null
checkoldflags
getargs "$@"
getdistro
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment