File tree 2 files changed +12
-9
lines changed
2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python3
2
2
# -*- coding: UTF-8 -*-
3
- __version__ = "0.1.13 "
3
+ __version__ = "0.1.14 "
Original file line number Diff line number Diff line change @@ -19,14 +19,17 @@ def run(self):
19
19
20
20
install .run (self )
21
21
22
- if not os .path .exists ('/usr/local/share/applications' ):
23
- os .makedirs ('/usr/local/share/applications' )
24
- copyfile ('dosview.desktop' , '/usr/local/share/applications/dosview.desktop' )
25
-
26
- if not os .path .exists ('/usr/local/share/icons' ):
27
- os .makedirs ('/usr/local/share/icons' )
28
- copyfile ('media/icon_ust.png' , '/usr/local/share/icons/icon_ust.png' )
29
-
22
+ try :
23
+ if not os .path .exists ('/usr/local/share/applications' ):
24
+ os .makedirs ('/usr/local/share/applications' )
25
+ copyfile ('dosview.desktop' , '/usr/local/share/applications/dosview.desktop' )
26
+
27
+ if not os .path .exists ('/usr/local/share/icons' ):
28
+ os .makedirs ('/usr/local/share/icons' )
29
+ copyfile ('media/icon_ust.png' , '/usr/local/share/icons/icon_ust.png' )
30
+ except Exception as e :
31
+ print (f"Error: { e } " )
32
+ print ("Dosview intsallation script failed .. " )
30
33
# Get the commit hash
31
34
#commit_hash = subprocess.check_output(['git', 'rev-parse', 'HEAD']).decode().strip()
32
35
You can’t perform that action at this time.
0 commit comments