From: Silvio Rhatto Date: Mon, 26 Mar 2012 21:27:06 +0000 (-0300) Subject: Adding KEYRINGER_CHECK_VERSION env variable X-Git-Tag: 0.2.1~73 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=a0d856ef9006dae1ee8b73ccc3f348155c1885c2;p=keyringer.git Adding KEYRINGER_CHECK_VERSION env variable --- diff --git a/lib/keyringer/functions b/lib/keyringer/functions index 2955473..3022bbe 100644 --- a/lib/keyringer/functions +++ b/lib/keyringer/functions @@ -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