summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-09-29 19:02:17 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-09-29 19:02:17 -0300
commitd4b65892ca94076d3254ec0df5df969813afebf9 (patch)
treef8d094f99205fc073d5f8f6c59484afbff602f4f
parentd9d0c1fdec1a1beebba75e00af7af6f9adc94535 (diff)
downloadkeyringer-d4b65892ca94076d3254ec0df5df969813afebf9.tar.gz
keyringer-d4b65892ca94076d3254ec0df5df969813afebf9.tar.bz2
Test KEYRINGER_CHECK_VERSION also on keyringer_upgrade
-rwxr-xr-xlib/keyringer/functions4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/keyringer/functions b/lib/keyringer/functions
index 37a33aa..0da1548 100755
--- a/lib/keyringer/functions
+++ b/lib/keyringer/functions
@@ -281,6 +281,10 @@ function keyringer_upgrade {
# Variable used to hold applied version upgrades
local version="$VERSION"
+ if [ "$KEYRINGER_CHECK_VERSION" == "false" ]; then
+ return
+ fi
+
# Upgrade 0.1
if [ "$version" == "0" ]; then
if [ ! -d "$RECIPIENTS" ]; then