[PATCH 8/9] dim: only do dim update and git version checks for non-developer commands

Jani Nikula jani.nikula at intel.com
Thu Mar 29 08:46:00 UTC 2018


Try to be more friendly for non-committer/maintainer users, and consider
the checks more like sanity checks.

Signed-off-by: Jani Nikula <jani.nikula at intel.com>
---
 dim | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dim b/dim
index 5e931976fae0..8d79d988b211 100755
--- a/dim
+++ b/dim
@@ -2233,10 +2233,6 @@ function dim_usage
 	echo "See '$dim help' for more information."
 }
 
-# occasional check for dim updates
-check_for_updates
-git_version_check
-
 #
 # Command line options. Global short uppercase variables.
 #
@@ -2324,6 +2320,10 @@ else
 	done
 
 	read_integration_config
+
+	# occasional check for dim updates
+	check_for_updates
+	git_version_check
 fi
 
 # throw away to not confuse list-aliases
-- 
2.11.0



More information about the dim-tools mailing list