Ver Fonte

Removed exit blocks

David Witham há 3 anos atrás
pai
commit
52076397b8
1 ficheiros alterados com 2 adições e 2 exclusões
  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
     }