You signed in with another tab or window.Reloadto refresh your session.You signed out in another tab or window.Reloadto refresh your session.You switched accounts on another tab or window.Reloadto refresh your session.Dismiss alert
task: [setup-win] powershell if (test-path./hgweb/repos/sena-4) { rm -r./hgweb/repos/sena-4 }
which is exactly what I want, but then when I try to run it I get the same error again
task: [setup-win] powershell if (test-path./hgweb/repos/sena-4) { rm -r./hgweb/repos/sena-4 }
task: Failed to run task "setup-win": 1:15: a command can only contain words and redirects; encountered (
The only relatedissueI found was not helpful. It said this was an escaping issue, and ended with the user changing the syntax of their command, however I can't change the syntax powershell expects, it must beif ( test )for an if block.
Task version: 3.36
Operating system: windows
Experiments enabled: none
The text was updated successfully, but these errors were encountered:
Simple task defined like this:
however when I try to run it I get this error:
So I tried various ways of escaping the
(
,the last one being this:using task --dry shows this:
which is exactly what I want, but then when I try to run it I get the same error again
The only relatedissueI found was not helpful. It said this was an escaping issue, and ended with the user changing the syntax of their command, however I can't change the syntax powershell expects, it must be
if ( test )
for an if block.The text was updated successfully, but these errors were encountered: