Skip to content

Instantly share code, notes, and snippets.

@evanpurkhiser
Created February 16, 2014 05:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evanpurkhiser/9029709 to your computer and use it in GitHub Desktop.
Save evanpurkhiser/9029709 to your computer and use it in GitHub Desktop.
diff --git a/bin/dots b/bin/dots
index 206a68d..54d73d2 100755
--- a/bin/dots
+++ b/bin/dots
@@ -189,6 +189,10 @@ class Configuration(object):
# the machine should be stored in
default_group_file = os.path.join(INSTALL_DIR, 'config-groups')
+ # This is the version of the Configuration that is currently installed. Set
+ # to None if no config-version file exsts
+ current_git_version = open(os.path.join(INSTALL_DIR, 'config-version')).readline().strip()
+
def __init__(self, group_file=default_group_file, groups=[]):
self.group_file = group_file
self.groups = groups
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment