Explorar o código

Removed exit blocks

David Witham %!s(int64=3) %!d(string=hai) anos
pai
achega
52076397b8
Modificáronse 1 ficheiros con 2 adicións e 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
     }