aboutsummaryrefslogtreecommitdiff
path: root/lib/keyringer/functions
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-09-28 17:09:49 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-09-28 17:09:49 -0300
commit7b281024fdd9fd7bbf461265316360c80c4deee2 (patch)
treea416f7b3f76beffe25dbb9533bd48dfccf7aa8d9 /lib/keyringer/functions
parenta5aaf69c3865fd89de64c9b9f3cfc17b0d561843 (diff)
downloadkeyringer-7b281024fdd9fd7bbf461265316360c80c4deee2.tar.gz
keyringer-7b281024fdd9fd7bbf461265316360c80c4deee2.tar.bz2
Set KEYRINGER_CHECK_VERSION=false on shell completions
Diffstat (limited to 'lib/keyringer/functions')
-rwxr-xr-xlib/keyringer/functions6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/keyringer/functions b/lib/keyringer/functions
index e2e8fba..1bc6393 100755
--- a/lib/keyringer/functions
+++ b/lib/keyringer/functions
@@ -230,6 +230,12 @@ function keyringer_set_env {
# Configuration version tracking to help keyring upgrades
function keyringer_check_version {
if [ "$KEYRINGER_CHECK_VERSION" == "false" ]; then
+ if [ -f "$VERSION_INFO" ]; then
+ VERSION="`cat $VERSION_INFO`"
+ else
+ VERSION=""
+ fi
+
return
fi