Explorar el Código

Removed exit blocks

David Witham hace 3 años
padre
commit
52076397b8
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      backup_aragorn.psm1

+ 2 - 2
backup_aragorn.psm1

@@ -91,7 +91,7 @@ function check_disk($diskoverride=$false) {
         if (!($diskoverride)) {
             Write-Host -ForegroundColor DarkRed "This disk was last used less than 3 weeks ago. Override with -diskoverride."
             #throw 'Unable to proceed'
-            Exit 1
+            #Exit 1
         }
     }
 
@@ -100,7 +100,7 @@ function check_disk($diskoverride=$false) {
     if ($backupDisk.FreeSpace / 1gb -lt 20) {
         Write-Host -ForegroundColor DarkRed "There is less than 20gb free on the disk."
         #throw 'Unable to proceed'
-        Exit 1
+        #Exit 1
     }