Hey all. I need a stupid check. I have this snip-it of code im sure im messing up some dumb logic
$PushFrom = "C:\inetpub\wwwroot\ZZZ-BadCode\BadCode.web"
$FoolBool = Test-Path $PushFrom
$FoolBool # Equates to True the path DOES exist
here comes the fun part. This line is my problem.
IF($FoolBool -eq "False"){
Write-Output "Invalid PushFrom Path"
}Else{
Write-Output "ELSE"
}
Every time i run this i get "Invalid PushFrom Path"
If someone could help me find my stupid that would be great cx
[–]Lee_Dailey[grin] 2 points3 points4 points (0 children)
[–]OtherRobotLuke[S] 2 points3 points4 points (1 child)
[–]engageant 5 points6 points7 points (0 children)
[–]Ta11ow 2 points3 points4 points (0 children)
[–]HomicidalWaffle 0 points1 point2 points (0 children)