bugfix - I forgot order of operations ;)
This commit is contained in:
parent
965e55ab57
commit
a1a2c16b6b
@ -77,6 +77,11 @@ foreach ($folder in $Local_Folder_List) {
|
|||||||
else {
|
else {
|
||||||
$FolderName = $folder.Name
|
$FolderName = $folder.Name
|
||||||
$path_to_pathtxt = $folder.FullName + "\path.txt"
|
$path_to_pathtxt = $folder.FullName + "\path.txt"
|
||||||
|
if ((get-content $path_to_pathtxt) -eq "IgnoreMe") {
|
||||||
|
# allows us to set folders to ignored by changing Path.txt to contain IgnoreMe
|
||||||
|
# Break leaves the loop and goes to the next iteration
|
||||||
|
break
|
||||||
|
}
|
||||||
$PAthTXT_Exists = Test-Path $path_to_pathtxt
|
$PAthTXT_Exists = Test-Path $path_to_pathtxt
|
||||||
|
|
||||||
|
|
||||||
@ -100,10 +105,7 @@ foreach ($folder in $Local_Folder_List) {
|
|||||||
$ErrorMessage += '`"' + $FolderName + "`": Path.txt must specify only one path.<br />"
|
$ErrorMessage += '`"' + $FolderName + "`": Path.txt must specify only one path.<br />"
|
||||||
|
|
||||||
}
|
}
|
||||||
if ($Egnyte_Path -eq "IgnoreMe") {
|
|
||||||
# allows us to set folders to ignored by changing Path.txt to contain IgnoreMe
|
|
||||||
$Egnyte_Path_Valid = $false
|
|
||||||
}
|
|
||||||
else {
|
else {
|
||||||
$Egnyte_Path_Valid = $true
|
$Egnyte_Path_Valid = $true
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user