From 710fd49887db29b86db05d0d298d4cb9b4809446 Mon Sep 17 00:00:00 2001
From: Muhammad Herdiansyah <herdiansyah@openmailbox.org>
Date: Sat, 15 Oct 2016 09:08:12 +0700
Subject: [PATCH] Added function to check if old flags is still present on
 configs

---
 neofetch | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/neofetch b/neofetch
index 16b96b26..4d321be9 100755
--- a/neofetch
+++ b/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 {{{
 
 getscriptdir() {
@@ -3208,6 +3217,7 @@ getargs() {
 main() {
     getos
     getdefaultconfig 2>/dev/null
+    checkoldflags
     getargs "$@"
     getdistro