diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2012-03-26 18:27:06 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2012-03-26 18:27:06 -0300 |
commit | a0d856ef9006dae1ee8b73ccc3f348155c1885c2 (patch) | |
tree | 78288668564b19c5684ed4a273821b2f81f22bf0 /lib | |
parent | 43f16c99965d8b80b0473fd49768dad44c3bc78c (diff) | |
download | keyringer-a0d856ef9006dae1ee8b73ccc3f348155c1885c2.tar.gz keyringer-a0d856ef9006dae1ee8b73ccc3f348155c1885c2.tar.bz2 |
Adding KEYRINGER_CHECK_VERSION env variable
Diffstat (limited to 'lib')
-rw-r--r-- | lib/keyringer/functions | 4 |
1 files changed, 4 insertions, 0 deletions
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 |