]> gitweb.fluxo.info Git - keyringer.git/commitdiff
Adding KEYRINGER_CHECK_VERSION env variable
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 26 Mar 2012 21:27:06 +0000 (18:27 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 26 Mar 2012 21:27:06 +0000 (18:27 -0300)
lib/keyringer/functions

index 29554739ba33bdb764eeeb1d2b525ab1f66e2202..3022bbebcfd6020a84e544b04f7513717e946674 100644 (file)
@@ -225,6 +225,10 @@ function keyringer_set_env {
 
 # Configuration version tracking to help keyring upgrades
 function keyringer_check_version {
+  if [ "$KEYRINGER_CHECK_VERSION" == "false" ]; then
+    return
+  fi
+
   if [ ! -f "$VERSION_INFO" ]; then
     echo "Configuration version file not found, trying to pull from remotes..."
     for remote in "$BASEDIR/.git/refs/remotes/*"; do