mirror of
https://github.com/cyberboy666/r_e_c_u_r.git
synced 2025-12-05 16:00:06 +01:00
fixed update code
This commit is contained in:
11
actions.py
11
actions.py
@@ -830,8 +830,9 @@ class Actions(object):
|
||||
current_recur_hash = recur_repo.head.object.hexsha
|
||||
current_conjur_hash = conjur_repo.head.object.hexsha
|
||||
current_ofxVideoArtTools_hash = ofxVideoArtTools_repo.head.object.hexsha
|
||||
os.remove('/home/pi/r_e_c_u_r/json_objects/settings.json')
|
||||
os.remove(self.data.PATH_TO_DATA_OBJECTS + self.data.SETTINGS_JSON )
|
||||
|
||||
try_remove_file(self.data.PATH_TO_DATA_OBJECTS + self.data.SETTINGS_JSON )
|
||||
try_remove_file(PATH_TO_DEFAULT_CONJUR_DATA)
|
||||
try:
|
||||
recur_repo.remotes.origin.pull()
|
||||
conjur_repo.remotes.origin.pull()
|
||||
@@ -868,5 +869,7 @@ class Actions(object):
|
||||
self.message_handler.clear_all_messages()
|
||||
|
||||
|
||||
|
||||
|
||||
@staticmethod
|
||||
def try_remove_file(path):
|
||||
os.path.exists(path):
|
||||
os.remove(filePath)
|
||||
|
||||
Reference in New Issue
Block a user