diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/virtual/ogOperations.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/virtual/ogOperations.py b/src/virtual/ogOperations.py index a3f94a8..930382d 100644 --- a/src/virtual/ogOperations.py +++ b/src/virtual/ogOperations.py @@ -418,7 +418,7 @@ class OgVirtualOperations: except: return None - subprocess.run([f'umount {self.OG_IMAGES_PATH}'], shell=True) + subprocess.run([f'umount {self.OG_IMAGES_PATH}'], shell=True, check=True) return True @@ -445,7 +445,7 @@ class OgVirtualOperations: f'ro,nolock,serverino,acl,' \ f'username={samba_config["user"]},' \ f'password={samba_config["pass"]}' - subprocess.run([cmd], shell=True) + subprocess.run([cmd], shell=True, check=True) try: shutil.copy(f'{self.OG_IMAGES_PATH}/{name}', drive_path) |